Skip to content

Commit

Permalink
add one more test for env creation
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakJariwala committed Jun 17, 2022
1 parent 0fc6c4b commit 7c6ce42
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_create.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import sys
import os
import json
import pytest
from typer.testing import CliRunner
from pathlib import Path
Expand All @@ -19,6 +17,14 @@ def test_create_without_install(clean_up_env_after_test):
check_if_env_is_created("test")


@pytest.mark.usefixtures("clean_up_env_after_test")
def test_create_without_env_name(clean_up_env_after_test):
result = runner.invoke(app, ["create"], input="test")

assert Path("test.yml").is_file()
check_if_env_is_created("test")


@pytest.mark.usefixtures("clean_up_env_after_test")
def test_verbose_w_conda(clean_up_env_after_test):
result = runner.invoke(app, ["create", "-n", "test", "-v", "--solver", "conda"])
Expand Down

0 comments on commit 7c6ce42

Please sign in to comment.