Skip to content

Commit

Permalink
remove fixture again
Browse files Browse the repository at this point in the history
  • Loading branch information
smoors committed Sep 17, 2024
1 parent a321867 commit 832a504
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import os
import pytest

from build_tools import softinstall


def pytest_addoption(parser):
parser.addoption(
Expand Down Expand Up @@ -53,8 +51,3 @@ def realpath_apps_brussel(path):
@pytest.fixture
def mock_realpath_apps_brussel(monkeypatch):
monkeypatch.setattr('os.path.realpath', realpath_apps_brussel)


@pytest.fixture
def mock_supported_tcgens(monkeypatch):
monkeypatch.setattr(softinstall, 'SUPPORTED_TCGENS', ['2022a', '2023a'])
2 changes: 1 addition & 1 deletion tests/test_softinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
('fosscuda-2020b.eb', None, False),
],
)
def test_set_toolchain_generation(toolchain, mock_supported_tcgens):
def test_set_toolchain_generation(toolchain):
easyconfig, user_toolchain, expected_generation = toolchain

generation = softinstall.set_toolchain_generation(easyconfig, tc_gen=user_toolchain)
Expand Down

0 comments on commit 832a504

Please sign in to comment.