Files
website-v2/versions/tests/test_views.py
Frank Wiles 29878c3f90 Rework versions models
- Added ListView and DetailView
- Move to pytest style tests
- Fix migrations to be clean to rebuild and throw away existing data
- Add model_bakery
2022-05-28 16:00:24 -05:00

8 lines
209 B
Python

def test_version_list(version, tp):
res = tp.get("version-list")
tp.response_200(res)
print(res.context)
objs = res.context["version_list"]
assert len(objs) == 1
assert version in objs