Skip to content

Commit

Permalink
Fixed missing import and paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Nov 3, 2024
1 parent 1fbe828 commit 4b89843
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyEDAA/ProjectModel/Xilinx/Vivado.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#
"""Specific file types and attributes for Xilinx Vivado."""
from pathlib import Path
from typing import Iterable
from typing import Iterable, Optional as Nullable
from xml.dom import minidom, Node

from pyTooling.Decorators import export
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Design.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def test_Files(self) -> None:

class Validate(TestCase):
def test_Design(self) -> None:
project = Project("project", rootDirectory=Path("project"))
project = Project("project", rootDirectory=Path("tests/project"))
design = Design("design", directory=Path("designA"), project=project)

design.Validate()
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/File.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def test_ResolveDirectory(self) -> None:

class Validate(TestCase):
def test_File(self) -> None:
project = Project("project", rootDirectory=Path("project"))
project = Project("project", rootDirectory=Path("tests/project"))
design = Design("design", directory=Path("designA"), project=project)
fileSet = FileSet("fileset", design=design)
file = File(Path("file_A1.vhdl"), fileSet=fileSet)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/FileSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def test_SourceFile(self):

class Validate(TestCase):
def test_FileSet(self) -> None:
project = Project("project", rootDirectory=Path("project"))
project = Project("project", rootDirectory=Path("tests/project"))
design = Design("design", directory=Path("designA"), project=project)
fileSet = FileSet("fileset", design=design)

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Files.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_GetVersionFromFileSet(self) -> None:
self.assertEqual(vhdlVersion, file.VHDLVersion)

def test_Validate(self) -> None:
project = Project("project", rootDirectory=Path("project"), vhdlVersion=VHDLVersion.VHDL2019)
project = Project("project", rootDirectory=Path("tests/project"), vhdlVersion=VHDLVersion.VHDL2019)
design = Design("design", directory=Path("designA"), project=project)
vhdlLibrary = VHDLLibrary("library", design=design)
fileSet = FileSet("fileset", vhdlLibrary=vhdlLibrary, design=design)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Project.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def test_ResolveDirectory(self) -> None:

class Validate(TestCase):
def test_Project(self) -> None:
project = Project("project", rootDirectory=Path("project"))
project = Project("project", rootDirectory=Path("tests/project"))

project.Validate()

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/VivadoProject.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

class FileSets(TestCase):
def test_Parsing(self) -> None:
xprPath = Path.cwd() / "VivadoProject/StopWatch/project/StopWatch.xpr"
xprPath = Path.cwd() / "tests/VivadoProject/StopWatch/project/StopWatch.xpr"
# print()
# print(f"{xprPath}")
xprFile = VivadoProjectFile(xprPath)
Expand Down

0 comments on commit 4b89843

Please sign in to comment.