Skip to content

Commit

Permalink
feat: added test_case for using --markdown-storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Poiuy7312 committed Oct 24, 2023
1 parent b99ed4b commit 2a79a78
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,3 +310,26 @@ def test_fuzz_cli_analyze_single_directory(cwd, directory):
],
)
assert result.exit_code == 0

def test_analyze_store_results(cwd,tmpdir):
"""Makes sure analyze doesn't crash when using markdown storage."""
test_store = tmpdir.mkdir("test_store")
project_name = "testing"
# create a reference to the internal
# .chasten directory that supports testing
configuration_directory = str(cwd) + "/.chasten"
result = runner.invoke(
main.cli,
[
"analyze",
"--search-path",
cwd,
project_name,
"--config",
configuration_directory,
"--markdown-storage",
test_store,
],
)
assert result.exit_code == 0
assert "✨ Results saved in:" in result.output

0 comments on commit 2a79a78

Please sign in to comment.