github.com/sercand/please@v13.4.0+incompatible/test/python_rules/pytest/test_runner.py (about) 1 """Tests on the pytest runner framework.""" 2 3 # This isn't normally necessary for pytest, but proves that we're using the correct runner 4 # (otherwise unittest will just not call any of the test functions and report success) 5 import pytest 6 7 8 def test_answer(): 9 """Deceptively simple test, from their examples. 10 11 In this case, it's really testing that the import works correctly, which is fairly important... 12 """ 13 from test.python_rules.pytest.inc import inc 14 assert inc(3) == 4 15 16 17 def test_pytest_is_importable(): 18 """Slightly more useful test; if pytest can't be imported, this can't be working...""" 19 assert pytest 20