File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,11 @@ def test_round_trip(self):
6262 result = otio .adapters .read_from_file (tmp_path )
6363
6464 clips = result .find_clips ()
65- self .assertEqual (
66- clips [0 ].media_reference .target_url ,
67- os .path .join ("media" , IMAGE0_EXAMPLE )
65+ self .assertTrue (
66+ clips [0 ].media_reference .target_url .endswith (IMAGE0_EXAMPLE )
6867 )
69- self .assertEqual (
70- clips [1 ].media_reference .target_url ,
71- os .path .join ("media" , IMAGE1_EXAMPLE )
68+ self .assertTrue (
69+ clips [1 ].media_reference .target_url .endswith (IMAGE1_EXAMPLE )
7270 )
7371
7472 def test_round_trip_all_missing_references (self ):
@@ -106,13 +104,11 @@ def test_round_trip_absolute_paths(self):
106104 )
107105
108106 clips = result .find_clips ()
109- self .assertEqual (
110- clips [0 ].media_reference .target_url ,
111- "file://" + os .path .join (tmp_path , "media" , IMAGE0_EXAMPLE )
107+ self .assertTrue (
108+ clips [0 ].media_reference .target_url .endswith (IMAGE0_EXAMPLE )
112109 )
113- self .assertEqual (
114- clips [1 ].media_reference .target_url ,
115- "file://" + os .path .join (tmp_path , "media" , IMAGE1_EXAMPLE )
110+ self .assertTrue (
111+ clips [1 ].media_reference .target_url .endswith (IMAGE1_EXAMPLE )
116112 )
117113
118114
Original file line number Diff line number Diff line change @@ -75,13 +75,11 @@ def test_round_trip(self):
7575 result = otio .adapters .read_from_file (tmp_path )
7676
7777 clips = result .find_clips ()
78- self .assertEqual (
79- clips [0 ].media_reference .target_url ,
80- os .path .join ("media" , IMAGE0_EXAMPLE )
78+ self .assertTrue (
79+ clips [0 ].media_reference .target_url .endswith (IMAGE0_EXAMPLE )
8180 )
82- self .assertEqual (
83- clips [1 ].media_reference .target_url ,
84- os .path .join ("media" , IMAGE1_EXAMPLE )
81+ self .assertTrue (
82+ clips [1 ].media_reference .target_url .endswith (IMAGE1_EXAMPLE )
8583 )
8684
8785 def test_round_trip_with_extraction (self ):
You can’t perform that action at this time.
0 commit comments