Skip to content

Commit 4b89843

Browse files
committed
Fixed missing import and paths.
1 parent 1fbe828 commit 4b89843

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

pyEDAA/ProjectModel/Xilinx/Vivado.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#
3131
"""Specific file types and attributes for Xilinx Vivado."""
3232
from pathlib import Path
33-
from typing import Iterable
33+
from typing import Iterable, Optional as Nullable
3434
from xml.dom import minidom, Node
3535

3636
from pyTooling.Decorators import export

tests/unit/Design.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def test_Files(self) -> None:
141141

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

147147
design.Validate()

tests/unit/File.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def test_ResolveDirectory(self) -> None:
147147

148148
class Validate(TestCase):
149149
def test_File(self) -> None:
150-
project = Project("project", rootDirectory=Path("project"))
150+
project = Project("project", rootDirectory=Path("tests/project"))
151151
design = Design("design", directory=Path("designA"), project=project)
152152
fileSet = FileSet("fileset", design=design)
153153
file = File(Path("file_A1.vhdl"), fileSet=fileSet)

tests/unit/FileSet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def test_SourceFile(self):
313313

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

tests/unit/Files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_GetVersionFromFileSet(self) -> None:
9797
self.assertEqual(vhdlVersion, file.VHDLVersion)
9898

9999
def test_Validate(self) -> None:
100-
project = Project("project", rootDirectory=Path("project"), vhdlVersion=VHDLVersion.VHDL2019)
100+
project = Project("project", rootDirectory=Path("tests/project"), vhdlVersion=VHDLVersion.VHDL2019)
101101
design = Design("design", directory=Path("designA"), project=project)
102102
vhdlLibrary = VHDLLibrary("library", design=design)
103103
fileSet = FileSet("fileset", vhdlLibrary=vhdlLibrary, design=design)

tests/unit/Project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_ResolveDirectory(self) -> None:
110110

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

115115
project.Validate()
116116

tests/unit/VivadoProject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
class FileSets(TestCase):
4444
def test_Parsing(self) -> None:
45-
xprPath = Path.cwd() / "VivadoProject/StopWatch/project/StopWatch.xpr"
45+
xprPath = Path.cwd() / "tests/VivadoProject/StopWatch/project/StopWatch.xpr"
4646
# print()
4747
# print(f"{xprPath}")
4848
xprFile = VivadoProjectFile(xprPath)

0 commit comments

Comments
 (0)