File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
pyEDAA/ProjectModel/Xilinx Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3030#
3131"""Specific file types and attributes for Xilinx Vivado."""
3232from pathlib import Path
33- from typing import Iterable
33+ from typing import Iterable , Optional as Nullable
3434from xml .dom import minidom , Node
3535
3636from pyTooling .Decorators import export
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def test_Files(self) -> None:
141141
142142class 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 ()
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ def test_ResolveDirectory(self) -> None:
147147
148148class 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 )
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ def test_SourceFile(self):
313313
314314class 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
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def test_ResolveDirectory(self) -> None:
110110
111111class 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
Original file line number Diff line number Diff line change 4242
4343class 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 )
You can’t perform that action at this time.
0 commit comments