Skip to content

Commit 709e724

Browse files
committed
Fix export history
1 parent 2dabd89 commit 709e724

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

jupyter_conda/tests/test_api.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,11 +575,12 @@ def test_env_export_history(self):
575575

576576
content = " ".join(r.text.splitlines())
577577
self.assertRegex(
578-
content, r"^name:\s" + n + r"\s+channels:\s+- python\s+prefix:"
578+
content, r"^name:\s" + n + r"\s+channels:\s+- defaults\s+dependencies:\s+- python\s+prefix:"
579579
)
580580

581581
def test_env_export_not_supporting_history(self):
582-
EnvManager._conda_version = (3, 6, 0)
582+
manager = TestEnvironmentHandler.notebook.web_app.settings["env_manager"]
583+
manager._conda_version = (4, 6, 0)
583584

584585
try:
585586
n = generate_name()
@@ -596,7 +597,7 @@ def test_env_export_not_supporting_history(self):
596597
self.assertRegex(content, r"- python=\d\.\d+\.\d+=\w+")
597598
self.assertRegex(content, r"prefix:")
598599
finally:
599-
EnvManager._conda_version = None
600+
manager._conda_version = None
600601

601602

602603
class TestCondaVersion(JupyterCondaAPITest):

0 commit comments

Comments
 (0)