Skip to content

Commit

Permalink
testing more with invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLecocq committed Nov 25, 2024
1 parent fc55f6f commit b60bed9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions msnoise/test/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,3 +679,16 @@ def test_100000_msnoise_admin():
response = test_client.get(route, follow_redirects=True)
assert response.status_code == 200, f"Error following route {route}"


@pytest.mark.order(200000)
def test_20000_invoke_script(setup_environment):
runner = setup_environment['runner']

for cmd in [
msnoise_script.config_sync,
msnoise_script.db_upgrade,
msnoise_script.db_clean_duplicates,
]:

result = runner.invoke(cmd)
assert result.exit_code == 0, f"Command failed with exit code {result.exit_code}"

0 comments on commit b60bed9

Please sign in to comment.