Finally found a way to use the controlled vocabulary in pytests without hardcoding them instead of getting them from the database itself. BUT: At several places, 'import toardb' had to be inserted (to avoid circular imports when importing only the controlled vocabulary) AND: pytest would only work when stationmeta.models_annotation imports generic.models (This seems to be related to the order in which tables are created.) Deleted all '# coding: utf-8' lines from source code, since this is standard with python3.
parent
e82278c3
No related branches found
No related tags found
Checking pipeline status
Showing
- toardb/auth_user/models.py 0 additions, 1 deletiontoardb/auth_user/models.py
- toardb/base.py 0 additions, 1 deletiontoardb/base.py
- toardb/contacts/crud.py 3 additions, 5 deletionstoardb/contacts/crud.py
- toardb/contacts/models.py 0 additions, 14 deletionstoardb/contacts/models.py
- toardb/contacts/models_organisation.py 0 additions, 1 deletiontoardb/contacts/models_organisation.py
- toardb/contacts/models_person.py 0 additions, 1 deletiontoardb/contacts/models_person.py
- toardb/contacts/schemas.py 6 additions, 7 deletionstoardb/contacts/schemas.py
- toardb/data/crud.py 5 additions, 7 deletionstoardb/data/crud.py
- toardb/data/models.py 0 additions, 27 deletionstoardb/data/models.py
- toardb/data/schemas.py 3 additions, 3 deletionstoardb/data/schemas.py
- toardb/generic/models.py 1 addition, 37 deletionstoardb/generic/models.py
- toardb/stationmeta/crud.py 23 additions, 25 deletionstoardb/stationmeta/crud.py
- toardb/stationmeta/models.py 0 additions, 958 deletionstoardb/stationmeta/models.py
- toardb/stationmeta/models_annotation.py 1 addition, 1 deletiontoardb/stationmeta/models_annotation.py
- toardb/stationmeta/models_aux.py 0 additions, 1 deletiontoardb/stationmeta/models_aux.py
- toardb/stationmeta/models_changelog.py 0 additions, 1 deletiontoardb/stationmeta/models_changelog.py
- toardb/stationmeta/models_core.py 0 additions, 1 deletiontoardb/stationmeta/models_core.py
- toardb/stationmeta/models_global.py 0 additions, 1 deletiontoardb/stationmeta/models_global.py
- toardb/stationmeta/models_global_services.py 0 additions, 1 deletiontoardb/stationmeta/models_global_services.py
- toardb/stationmeta/models_role.py 0 additions, 1 deletiontoardb/stationmeta/models_role.py
Loading
Please register or sign in to comment