mirror of
https://github.com/Dasharo/roadmapper.git
synced 2026-06-13 19:16:15 -07:00
Comment pytest fixtures
This commit is contained in:
@@ -3,9 +3,16 @@ import pytest
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def change_test_dir(request, monkeypatch):
|
||||
"""
|
||||
This fixture ensures that generated roadmaps end up in correct path,
|
||||
no matter from which path tests are executed.
|
||||
"""
|
||||
monkeypatch.chdir(request.fspath.dirname)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def operating_system_ubuntu():
|
||||
"""
|
||||
This fixture can be used as test argument to provide string of used OS `Ubuntu`.
|
||||
"""
|
||||
return "Ubuntu"
|
||||
|
||||
Reference in New Issue
Block a user