diff options
author | Guido Günther <agx@sigxcpu.org> | 2019-10-26 12:02:30 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2019-10-26 12:02:30 +0200 |
commit | 62485247b61090f8bd41a8bf419872db36fa12dc (patch) | |
tree | 18f75f70d862e471598b295fbb0cc1624932a601 /tests/05_test_detection.py | |
parent | d21627cb031a38b3d9a052e2d931853f04fb8fff (diff) |
export_orig: Don't fail without a repository
This is a valid use case in overlay mode
Thanks: Thomas Koch for the report
Diffstat (limited to 'tests/05_test_detection.py')
-rw-r--r-- | tests/05_test_detection.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/05_test_detection.py b/tests/05_test_detection.py index d6322335..c4831fbf 100644 --- a/tests/05_test_detection.py +++ b/tests/05_test_detection.py @@ -139,3 +139,8 @@ class TestDetection(unittest.TestCase): guessed = export_orig.guess_comp_type( 'gz', self.source, repo, None) self.assertEqual("gzip", guessed) + + def test_guess_comp_type_no_repo(self): + guessed = export_orig.guess_comp_type( + 'auto', self.source, None, str(self.tmpdir)) + self.assertEqual('gzip', guessed) |