forked from PAWPAW-Mirror/lib_xua
- Added test_mixer_routing_output
- Various buffers no longer marked static to allow for easier unit testing - Added some comments and removed some dead code from the implementation - Moved mixer control comms to functions for unit test convenience
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
# Copyright 2022 XMOS LIMITED.
|
||||
# This Software is subject to the terms of the XMOS Public Licence: Version 1.
|
||||
import pytest
|
||||
import time
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def test_file(request):
|
||||
return str(request.node.fspath)
|
||||
|
||||
|
||||
@pytest.fixture(scope="session") # Use same seed for whole run
|
||||
def test_seed(request):
|
||||
|
||||
seed = str(int(time.time()))
|
||||
# We dont need the following since pytest will print the values of our fixtures on a failure
|
||||
# capmanager = request.config.pluginmanager.getplugin("capturemanager")
|
||||
# with capmanager.global_and_fixture_disabled():
|
||||
# print("Using seed: "+ seed)
|
||||
return seed
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
|
||||
Reference in New Issue
Block a user