Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /spraakbanken_karp-backend /tests /e2e /test_cliapp_resources.py
| from typer.testing import CliRunner | |
| from karp.cliapp.main import create_app | |
| from karp.globals import new_session | |
| from karp.lex.application import resource_queries | |
| runner = CliRunner() | |
| cliapp = create_app() | |
| def test_help(): | |
| result = runner.invoke(cliapp, ["resource", "--help"]) | |
| assert result.exit_code == 0 | |
| def test_create_and_publish_repo(): | |
| result = runner.invoke( | |
| cliapp, | |
| [ | |
| "resource", | |
| "create", | |
| "assets/testing/config/lexlex.yaml", | |
| ], | |
| ) | |
| if isinstance(result.exception, Exception): | |
| raise result.exception | |
| else: | |
| assert result.exit_code == 0 | |
| with new_session(): | |
| assert resource_queries.by_resource_id_optional("lexlex") is not None | |
Xet Storage Details
- Size:
- 753 Bytes
- Xet hash:
- 9eae856fd7981f27bc43a78773198b1839a0823d91da8c9bafd3a326e2e497a7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.