Skip to content

Commit 0495c3c

Browse files
committed
fix tests
1 parent fcc989a commit 0495c3c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/test_celery_system_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _check_log_errors(caplog):
4545
pytest.fail(f"log errors during tests: {errors}")
4646

4747

48-
@pytest.mark.usefixtures(_bind_settings_with_system)
48+
@pytest.mark.usefixtures("_bind_settings_with_system")
4949
def test_celery_auto_track_task(celery_session_app, celery_session_worker):
5050
@celery_session_app.task(bind=True)
5151
def add_normal(self, a, b):

tests/test_cli_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_info_args_trump_env():
6464
_check_output(result, "org1", "project1", "-")
6565

6666

67-
@pytest.mark.usefixtures(_mock_config)
67+
@pytest.mark.usefixtures("_mock_config")
6868
def test_info_config():
6969
result = runner.invoke(app, ["info"])
7070
_check_output(result, "test_org", "test_project", "test_token")
@@ -79,13 +79,13 @@ def test_info_config():
7979
},
8080
clear=True,
8181
)
82-
@pytest.mark.usefixtures(_mock_config)
82+
@pytest.mark.usefixtures("_mock_config")
8383
def test_info_config_env():
8484
result = runner.invoke(app, ["info"])
8585
_check_output(result, "org2", "project2", "token2")
8686

8787

88-
@pytest.mark.usefixtures(_mock_config)
88+
@pytest.mark.usefixtures("_mock_config")
8989
def test_info_config_args():
9090
result = runner.invoke(app, ["-o", "org1", "-p", "project1", "info"])
9191
_check_output(result, "org1", "project1", "test_token")
@@ -100,7 +100,7 @@ def test_info_config_args():
100100
},
101101
clear=True,
102102
)
103-
@pytest.mark.usefixtures(_mock_config)
103+
@pytest.mark.usefixtures("_mock_config")
104104
def test_info_config_env_args():
105105
result = runner.invoke(app, ["-o", "org1", "-p", "project1", "info"])
106106
_check_output(result, "org1", "project1", "token2")

0 commit comments

Comments
 (0)