Skip to content

Commit

Permalink
Remove all test data in update script (#39)
Browse files Browse the repository at this point in the history
We need to remove *all* the test data as the specification can introduce
breaking changes.
  • Loading branch information
mristin authored Aug 22, 2024
1 parent 3d29654 commit 52b627b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dev_scripts/update_to_aas_core_meta_codegen_and_testgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,7 @@ def _replace_test_data(

print(f"Removing the test data from: {test_data_dir}")

for pth in [
test_data_dir / name
for name in ("descend", "descendOnce", "Json", "Xml", "xOrDefault")
]:
for pth in [subpath for subpath in test_data_dir.iterdir() if subpath.is_dir()]:
if pth.exists():
print(f"Removing {pth} ...")
shutil.rmtree(pth)
Expand Down

0 comments on commit 52b627b

Please sign in to comment.