Add change to test directory for high SNR python tests.

This commit is contained in:
Paul Kronenwetter 2022-05-29 09:03:25 -04:00
parent c15b11fe7b
commit 9d268b99ad
4 changed files with 24 additions and 0 deletions

View file

@ -20,6 +20,12 @@ except KeyError:
FRAMESPERBURST = 1
TESTFRAMES = 3
# For some reason, sometimes, this test requires the current directory to be `test`.
# Try to adapt dynamically. I still want to figure out why but as a workaround,
# I'm not completely dissatisfied.
if os.path.exists("test"):
os.chdir("test")
@pytest.mark.parametrize("bursts", [BURSTS, 2, 3])
@pytest.mark.parametrize("frames_per_burst", [FRAMESPERBURST, 2, 3])

View file

@ -20,6 +20,12 @@ except KeyError:
FRAMESPERBURST = 1
TESTFRAMES = 3
# For some reason, sometimes, this test requires the current directory to be `test`.
# Try to adapt dynamically. I still want to figure out why but as a workaround,
# I'm not completely dissatisfied.
if os.path.exists("test"):
os.chdir("test")
@pytest.mark.parametrize("bursts", [BURSTS, 2, 3])
@pytest.mark.parametrize("frames_per_burst", [FRAMESPERBURST, 2, 3])

View file

@ -19,6 +19,12 @@ except KeyError:
FRAMESPERBURST = 1
TESTFRAMES = 3
# For some reason, sometimes, this test requires the current directory to be `test`.
# Try to adapt dynamically. I still want to figure out why but as a workaround,
# I'm not completely dissatisfied.
if os.path.exists("test"):
os.chdir("test")
@pytest.mark.parametrize("bursts", [BURSTS, 2, 3])
@pytest.mark.parametrize("frames_per_burst", [FRAMESPERBURST, 2, 3])

View file

@ -19,6 +19,12 @@ except KeyError:
FRAMESPERBURST = 1
TESTFRAMES = 3
# For some reason, sometimes, this test requires the current directory to be `test`.
# Try to adapt dynamically. I still want to figure out why but as a workaround,
# I'm not completely dissatisfied.
if os.path.exists("test"):
os.chdir("test")
@pytest.mark.parametrize("bursts", [BURSTS, 2, 3])
@pytest.mark.parametrize("frames_per_burst", [FRAMESPERBURST, 2, 3])