tests: Extract common changedir fixture

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Paul Barker
2020-11-13 19:34:52 +01:00
committed by Jan Kiszka
parent bcb748c22a
commit 1253d22dee
3 changed files with 31 additions and 16 deletions

View File

@@ -25,14 +25,6 @@ import shutil
from kas import kas
from kas.libkas import run_cmd
import pytest
@pytest.fixture
def changedir():
yield
os.chdir(os.path.join(os.path.dirname(__file__), '..'))
def test_refspec_switch(changedir, tmpdir):
"""