Skip to content

Commit

Permalink
dont save
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwutk committed Aug 10, 2023
1 parent b478d82 commit a79cf10
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ jobs:
name: workflow-coverage
path: ./coverage.xml

- name: Commit formatted changes
run: ./scripts/commit-and-push.sh "[CI] update test"
# - name: Commit formatted changes
# run: ./scripts/commit-and-push.sh "[CI] update test"

test-video-processor:
name: Test Video Processor
Expand Down
16 changes: 8 additions & 8 deletions tests/workflow/test_optimized_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def test_optimized_workflow():

objects, trackings = _execute(world)

with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-trackings.json'), 'w') as f:
json.dump(trackings, f, indent=1, cls=MetadataJSONEncoder)
with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-trackings.pkl'), 'wb') as f:
pickle.dump(trackings, f)
# with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-trackings.json'), 'w') as f:
# json.dump(trackings, f, indent=1, cls=MetadataJSONEncoder)
# with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-trackings.pkl'), 'wb') as f:
# pickle.dump(trackings, f)

with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-trackings.pkl'), 'rb') as f:
trackings_groundtruth = pickle.load(f)
Expand All @@ -83,10 +83,10 @@ def test_optimized_workflow():
assert p.object_type == g.object_type, (p.object_type, g.object_type)
assert p.timestamp == g.timestamp, (p.timestamp, g.timestamp)

with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-objects.json'), 'w') as f:
json.dump(objects, f, indent=1)
with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-objects.pkl'), 'wb') as f:
pickle.dump(objects, f)
# with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-objects.json'), 'w') as f:
# json.dump(objects, f, indent=1)
# with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-objects.pkl'), 'wb') as f:
# pickle.dump(objects, f)

with open(os.path.join(OUTPUT_DIR, 'optimized-workflow-objects.pkl'), 'rb') as f:
objects_groundtruth = pickle.load(f)
Expand Down
16 changes: 8 additions & 8 deletions tests/workflow/test_simple_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def test_simple_workflow():

objects, trackings = _execute(world, optimization=False)

with open(os.path.join(OUTPUT_DIR, 'simple-workflow-trackings.json'), 'w') as f:
json.dump(trackings, f, indent=1, cls=MetadataJSONEncoder)
with open(os.path.join(OUTPUT_DIR, 'simple-workflow-trackings.pkl'), 'wb') as f:
pickle.dump(trackings, f)
# with open(os.path.join(OUTPUT_DIR, 'simple-workflow-trackings.json'), 'w') as f:
# json.dump(trackings, f, indent=1, cls=MetadataJSONEncoder)
# with open(os.path.join(OUTPUT_DIR, 'simple-workflow-trackings.pkl'), 'wb') as f:
# pickle.dump(trackings, f)

with open(os.path.join(OUTPUT_DIR, 'simple-workflow-trackings.pkl'), 'rb') as f:
trackings_groundtruth = pickle.load(f)
Expand All @@ -83,10 +83,10 @@ def test_simple_workflow():
assert p.object_type == g.object_type, (p.object_type, g.object_type)
assert p.timestamp == g.timestamp, (p.timestamp, g.timestamp)

with open(os.path.join(OUTPUT_DIR, 'simple-workflow-objects.json'), 'w') as f:
json.dump(objects, f, indent=1)
with open(os.path.join(OUTPUT_DIR, 'simple-workflow-objects.pkl'), 'wb') as f:
pickle.dump(objects, f)
# with open(os.path.join(OUTPUT_DIR, 'simple-workflow-objects.json'), 'w') as f:
# json.dump(objects, f, indent=1)
# with open(os.path.join(OUTPUT_DIR, 'simple-workflow-objects.pkl'), 'wb') as f:
# pickle.dump(objects, f)

with open(os.path.join(OUTPUT_DIR, 'simple-workflow-objects.pkl'), 'rb') as f:
objects_groundtruth = pickle.load(f)
Expand Down

0 comments on commit a79cf10

Please sign in to comment.