Skip to content

Commit

Permalink
test: Update test case for new copy way
Browse files Browse the repository at this point in the history
- Target:
  The test case should be updated because the method
  `__copyResourceFiles()` of the class `myPyInstallerRunner` has been
  updated the copy way.

- Changed:
  Update the test case to test the method `__copyResourceFiles()` of the
  class `myPyInstallerRunner`.
  • Loading branch information
burstknight committed Oct 12, 2023
1 parent 393e386 commit eddb463
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/examples/myApp02/config_dir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ CompileConfig:
- Source: ./test/examples/myApp02/version.txt
Target: .
- Source: ./test/examples/myApp02/data
Target: data
Target: .
2 changes: 1 addition & 1 deletion test/examples/myApp02/config_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ CompileConfig:
- Source: ./test/examples/myApp02/version.txt
Target: .
- Source: ./test/examples/myApp02/data
Target: data
Target: .
6 changes: 6 additions & 0 deletions test/examples/myApp02/myApp02.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def main():
print("Verison: %s\n" %(strVersern))

strDataDir = "./data"
isShow = False
for strFile in listdir(strDataDir):
strPath = join(strDataDir, strFile)
if False == isfile(strPath):
Expand All @@ -24,7 +25,12 @@ def main():

print(dctYaml)
print()
isShow = True
# End of for-loop

if False == isShow:
raise FileNotFoundError("Failed to load *yaml files!")
# End of if-condition
# End of main

if "__main__" == __name__:
Expand Down

0 comments on commit eddb463

Please sign in to comment.