Skip to content

Commit

Permalink
Merge pull request #76 from mirumee/fix_version_test
Browse files Browse the repository at this point in the history
Change script version test to avoid using hardcoded version
  • Loading branch information
mat-sop committed Feb 10, 2023
2 parents 77759b2 + 1867fc4 commit 647c072
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/main/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from importlib.metadata import version
from pathlib import Path

import httpx
Expand Down Expand Up @@ -42,7 +43,7 @@ def test_main_shows_version():
result = CliRunner().invoke(main, "--version")

assert result.exit_code == 0
assert "0.2.0" in result.output
assert version("ariadne-codegen") in result.output


@pytest.mark.parametrize(
Expand Down

0 comments on commit 647c072

Please sign in to comment.