1import pytest 2import os 3 4 5# integration tests requires nomad Vagrant VM or Binary running 6@pytest.mark.skipif(tuple(int(i) for i in os.environ.get("NOMAD_VERSION").split(".")) < (0, 7, 1), reason="Not supported in version") 7def test_metrics(nomad_setup): 8 nomad_setup.metrics.get_metrics() 9 10 11def test_dunder_str(nomad_setup): 12 assert isinstance(str(nomad_setup.metrics), str) 13 14 15def test_dunder_repr(nomad_setup): 16 assert isinstance(repr(nomad_setup.metrics), str) 17 18 19def test_dunder_getattr(nomad_setup): 20 21 with pytest.raises(AttributeError): 22 d = nomad_setup.metrics.does_not_exist