Skip to content

Commit

Permalink
file reformatted by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipe87 committed Dec 26, 2023
1 parent 52de5d9 commit a56b01c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_coremanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ def test_export():
]:
assert os.path.isfile(os.path.join(export_root, f))


def test_override(caplog):
import logging
import os

from fusesoc.config import Config
from fusesoc.coremanager import CoreManager
from fusesoc.librarymanager import Library
Expand All @@ -226,16 +228,17 @@ def test_override(caplog):
core_base_dir = os.path.join(os.path.dirname(__file__), "capi2_cores", "override")
cm = CoreManager(Config())
with caplog.at_level(logging.WARNING):
cm.add_library(Library("1", os.path.join(core_base_dir,"1")), [])
cm.add_library(Library("1", os.path.join(core_base_dir, "1")), [])
assert caplog.text == ""

with caplog.at_level(logging.WARNING):
cm.add_library(Library("2", os.path.join(core_base_dir,"2")), [])
cm.add_library(Library("2", os.path.join(core_base_dir, "2")), [])
assert "Replacing ::basic:0 in" in caplog.text

core = cm.get_core(Vlnv("::basic"))
assert core.core_root.endswith("2")


def test_virtual():
import os
import tempfile
Expand Down

0 comments on commit a56b01c

Please sign in to comment.