Skip to content

Commit 9249cfa

Browse files
authored
Merge pull request #14 from damat-le/tests
added version information in the test report (#14)
2 parents d2c2fe3 + a311b80 commit 9249cfa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/conftest.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import pytest
2+
import gymnasium
3+
import numpy as np
4+
import matplotlib
5+
6+
def pytest_report_header():
7+
"""Print version information in the header of the test report."""
8+
out_ = f"------------------" + '\n' + \
9+
f"gymnasium: {gymnasium.__version__}" + '\n' + \
10+
f"numpy: {np.__version__}" + '\n' + \
11+
f"matplotlib: {matplotlib.__version__}" + '\n' + \
12+
f"------------------"
13+
return out_

0 commit comments

Comments
 (0)