lomas_server.tests package
Submodules
lomas_server.tests.constants module
lomas_server.tests.test_api module
lomas_server.tests.test_api_diffprivlib module
lomas_server.tests.test_api_smartnoise_synth module
lomas_server.tests.test_collection_models module
lomas_server.tests.test_dummy_generation module
lomas_server.tests.test_mongodb_admin module
lomas_server.tests.test_mongodb_admin_cli module
- class lomas_server.tests.test_mongodb_admin_cli.TestMongoDBAdmin(methodName='runTest')[source]
Bases:
TestCase
Tests for the functions in mongodb_admin.py.
This is an integration test and requires a mongodb database to be started before being executed.
- run_cli_command(command: str, args: List) None [source]
Run a MongoDB administration CLI command.
- Parameters:
command (str) – The subcommand to run.
args (List[str]) – A list of arguments for the subcommand.
- Raises:
ValueError – If the command returns a non-zero exit status.
- test_get_archives_of_user_cli() None [source]
Test show archives of user via CLI.
Does not verify output for not
- test_get_list_of_datasets_cli() None [source]
Test get list of datasets via CLI.
Does not verify output for not
- test_get_list_of_datasets_from_user_cli() None [source]
Test get list of users via CLI.
Does not verify output for not
- test_get_list_of_users_cli() None [source]
Test get list of users via CLI.
Does not verify output for not