Commit bf4e3edd authored by Stephan Rave's avatar Stephan Rave
Browse files

[tests] add minimal tests for config.require()

parent 34a0fb91
Pipeline #113026 failed with stages
in 72 minutes and 26 seconds
......@@ -2,6 +2,7 @@
# Copyright 2013-2021 pyMOR developers and contributors. All rights reserved.
# License: BSD 2-Clause License (
import pytest
from pymor.core.config import config, _PACKAGES
......@@ -22,3 +23,13 @@ def test_dir():
for p in _PACKAGES:
assert 'HAVE_' + p in d
assert p + '_VERSION' in d
def test_require_numpy():
def test_require_fail_foo():
with pytest.raises(AttributeError):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment