Skip to content

Commit

Permalink
chore: register custom pytest markers to snuff error messages (#670)
Browse files Browse the repository at this point in the history
* chore: register custom pytest markers to snuff error messages

* fix: flake8

* chore: add entry to changelog

* fix: remove colon from markers comment lines.
  • Loading branch information
ChristianLieven committed Aug 30, 2019
1 parent 709563d commit 7618513
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ History

Next Release
------------
* Explicitly register custom markers `biomass`, `essentiality` and `growth`
used for custom test parametrization in pytest.

0.9.11 (2019-04-23)
-------------------
Expand Down
9 changes: 9 additions & 0 deletions src/memote/suite/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,12 @@ def model(self):
def sbml_version(self):
"""Provide SBML level, version, and FBC use."""
return self._sbml_ver

def pytest_configure(self, config):
"""Register custom markers at runtime."""
config.addinivalue_line("markers",
"biomass")
config.addinivalue_line("markers",
"essentiality")
config.addinivalue_line("markers",
"growth")

0 comments on commit 7618513

Please sign in to comment.