Skip to content

Commit

Permalink
Merge pull request #74 from gadomski/fix/cleanup-planet-test-data
Browse files Browse the repository at this point in the history
Cleanup planet test data
  • Loading branch information
lossyrob authored Mar 22, 2021
2 parents 68f416d + 7e2a137 commit e09cce8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/planet/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ class ConvertOrderTest(CliTestCase):
def create_subcommand_functions(self):
return [create_planet_command]

def tearDown(self):
thumbnail_path = TestData.get_path(
"data-files/planet-order/files/"
"20180119_XXXXXXX_XXXX_3B_Visual_file_format.thumbnail.png")
thumbnail_metadata_path = "{}.aux.xml".format(thumbnail_path)
for path in [thumbnail_path, thumbnail_metadata_path]:
if os.path.exists(path):
os.remove(path)

def test_converts(self):
test_order_manifest = TestData.get_path(
'data-files/planet-order/manifest.json')
Expand Down

0 comments on commit e09cce8

Please sign in to comment.