File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 66# Third-Party Libraries
77import pytest
88
9+ VERSION_FILE = "src/version.txt"
10+
11+
12+ @pytest .fixture (scope = "session" )
13+ def project_version ():
14+ """Return the version of the project."""
15+ with open (VERSION_FILE ) as f :
16+ project_version = f .read ().strip ()
17+ return project_version
18+
919
1020def pytest_addoption (parser ):
1121 """Add new commandline options to pytest."""
Original file line number Diff line number Diff line change 77import pytest
88
99GITHUB_RELEASE_TAG = os .getenv ("GITHUB_RELEASE_TAG" )
10- VERSION_FILE = "src/version.txt"
11-
12-
13- @pytest .fixture (scope = "session" )
14- def project_version ():
15- """Return the version of the project."""
16- with open (VERSION_FILE ) as f :
17- project_version = f .read ().strip ()
18- return project_version
1910
2011
2112@pytest .mark .skipif (
You can’t perform that action at this time.
0 commit comments