21 lines
496 B
Python
21 lines
496 B
Python
import configparser
|
|
|
|
import archives
|
|
|
|
|
|
def test_version():
|
|
# read the version set in pyproject.toml and compare to
|
|
# what the app thinks about itself
|
|
|
|
pyproject = configparser.ConfigParser()
|
|
pyproject.read("pyproject.toml")
|
|
pyproject_version = pyproject['tool.poetry']['version'].strip('"')
|
|
|
|
assert pyproject_version == archives.__version__
|
|
|
|
def test_pytest_name():
|
|
assert __name__ == "tests.test_archives"
|
|
|
|
def test_name():
|
|
assert archives.__name__ == "archives"
|