Skip to content

Commit a269cf6

Browse files
committed
Add a test file that checks the version
This new test establishes pytest_localserver.VERSION as part of the API of the package. The test won't catch changes where that constant is replaced by some other string value, but hopefully that's not a concern.
1 parent c04e35b commit a269cf6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_version.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import pytest_localserver
2+
3+
4+
def test_version():
5+
assert hasattr(pytest_localserver, "VERSION")
6+
assert isinstance(pytest_localserver.VERSION, str)

0 commit comments

Comments
 (0)