Skip to content

Commit

Permalink
add test for file-like object
Browse files Browse the repository at this point in the history
  • Loading branch information
n8pease committed May 30, 2020
1 parent 1be7e7f commit 3eaaa8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_butler.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,8 +924,9 @@ def runImportExportTest(self, storageClass):
# butler command line interface "import" subcommand. Functions
# in the script folder are generally considered protected and
# should not be used as public api.
script.butlerImport(importDir, output_run="ingest/run", export_file=exportFile,
directory=exportButler.datastore.root, transfer="symlink")
with open(exportFile, "r") as f:
script.butlerImport(importDir, output_run="ingest/run", export_file=f,
directory=exportButler.datastore.root, transfer="symlink")
importButler = Butler(importDir, run="ingest/run")
for ref in datasets:
with self.subTest(ref=ref):
Expand Down

0 comments on commit 3eaaa8a

Please sign in to comment.