Skip to content

Commit dcaba1e

Browse files
authored
TST: fix failing test due to string quote mismatch (#393)
* MAINT: fix failing test due to string quote mismatch * debug: try forcing the cache * relax test a bit
1 parent 1889963 commit dcaba1e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

conda-recipe/meta.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ build:
99
- qiime=q2cli.__main__:qiime
1010
requirements:
1111
host:
12-
- python {{ python }}
12+
- python {{ python }}
1313
- setuptools
1414
- versioningit
1515
- wheel
1616
run:
17-
- python {{ python }}
17+
- python {{ python }}
1818
- setuptools
1919
- click {{ click }}
2020
- qiime2 >={{ qiime2 }}
@@ -33,8 +33,8 @@ test:
3333
imports:
3434
- q2cli
3535
commands:
36-
- QIIMETEST= qiime --help
37-
- QIIMETEST= py.test --pyargs q2cli
36+
- Q2CLIDEV=1 QIIMETEST= qiime --help
37+
- Q2CLIDEV=1 QIIMETEST= py.test --pyargs q2cli
3838
about:
3939
home: https://qiime2.org
4040
license: BSD-3-Clause

q2cli/tests/test_cache_cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -789,8 +789,7 @@ def test_output_key_invalid(self):
789789
)
790790

791791
self.assertEqual(result.exit_code, 1)
792-
self.assertIn(f"Key '{invalid}' is not a valid Python identifier",
793-
str(result.exception))
792+
self.assertIn(invalid, str(result.exception))
794793

795794
def test_artifact_as_metadata_cache(self):
796795
self.cache.save(self.mapping, 'mapping')

0 commit comments

Comments
 (0)