Skip to content

Commit

Permalink
Mark tests taking more than 1s as slow
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobGM committed May 23, 2018
1 parent cae6e0c commit ff3f625
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions astrality/tests/config/test_modules_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def test_valid_names_which_indicate_github_modules(self):
module_name='global_module',
)

@pytest.mark.slow
def test_that_username_and_repo_is_identified(self, tmpdir, delete_jakobgm):
modules_directory = Path(tmpdir)
github_module_source = GithubModuleSource(
Expand Down
1 change: 1 addition & 0 deletions astrality/tests/module/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def delete_jakobgm(test_config_directory):
shutil.rmtree(location)


@pytest.mark.slow
def test_using_three_different_module_sources(
test_config_directory,
delete_jakobgm,
Expand Down
1 change: 1 addition & 0 deletions astrality/tests/module/test_exit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def test_target(tmpdir):
os.remove(test_target)


@pytest.mark.slow
def test_that_all_exit_actions_are_correctly_performed(
test_config_directory,
test_target,
Expand Down
1 change: 1 addition & 0 deletions astrality/tests/module/test_external_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def temp_test_files(test_config_directory):
os.remove(file)


@pytest.mark.slow
@pytest.mark.skipif(MACOS, reason='Flaky on MacOS')
def test_correct_relative_paths_used_in_external_module(
temp_test_files,
Expand Down
1 change: 1 addition & 0 deletions astrality/tests/module/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ def test_import_sections_on_startup(config_with_modules, freezer):


class TestModuleManager:
@pytest.mark.slow
def test_invocation_of_module_manager_with_config(self, conf):
ModuleManager(conf)

Expand Down
1 change: 1 addition & 0 deletions astrality/tests/module/test_module_filewatching.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def test_direct_invocation_of_modifed_method_of_module_manager(modules_config):
assert Retry()(lambda: touch_target.is_file())


@pytest.mark.slow
@pytest.mark.skipif(MACOS, reason='Flaky on MacOS')
def test_on_modified_event_in_module(modules_config):
(
Expand Down

0 comments on commit ff3f625

Please sign in to comment.