-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable VSCode Testing to scan tests successfully (#435)
Changes: - Avoid using `current_domain` where domain object is readily accessible - Rename `test_domains` directory to `domains` in `tests/support` - Add `tests/support` to ignore path in .vscode/settings file - Change files to throw OutOfContextError now that there is no import time access to OutOfContextError
- Loading branch information
Showing
79 changed files
with
332 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,9 +135,6 @@ output/*/index.html | |
.testmondata | ||
*.rdb | ||
|
||
# VS Code | ||
.vscode | ||
|
||
# Sphinx | ||
docs-sphinx/.doctrees | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Protean CLI", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "protean", | ||
"console": "integratedTerminal", | ||
"justMyCode": false, | ||
"args": [ | ||
"new", | ||
"-o", | ||
"/Users/subhashb/wspace/proteanhq/test-scaffolding", | ||
"-d", | ||
"author_name=Subhash Bhushan", | ||
"-d", | ||
"[email protected]", | ||
] | ||
}, | ||
{ | ||
"name": "Python: Debug Tests", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"purpose": ["debug-test"], | ||
"console": "integratedTerminal", | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Python: Current File", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "${file}", | ||
"console": "integratedTerminal", | ||
"justMyCode": false | ||
}, | ||
{ | ||
"name": "Python: Pytest", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"justMyCode": false, | ||
"args": [ | ||
"tests/test_aggregates.py::TestAggregateIdentity::test_that_abstract_aggregates_do_not_have_id_field", | ||
] | ||
}, | ||
{ | ||
"name": "Python: Sqlite - Specific test case", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"justMyCode": false, | ||
"args": [ | ||
"tests/adapters/repository/sqlalchemy_repo/sqlite/test_provider.py::TestProviders::test_provider_raw", | ||
"--sqlite" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Postgres - Specific test case", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"justMyCode": false, | ||
"args": [ | ||
"tests/adapters/model/sqlalchemy_model/postgresql/test_array_datatype.py::test_array_data_type_association", | ||
"--postgresql" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Redis - Specific test case", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"args": [ | ||
"tests/adapters/broker/redis_broker/tests.py::TestPublishingToRedis::test_event_message_structure", | ||
"--redis" | ||
] | ||
}, | ||
{ | ||
"name": "Python: MessageDB - Specific test case", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"args": [ | ||
"tests/adapters/event_store/message_db_event_store/tests.py::TestMessageDBEventStore::test_error_on_message_db_initialization", | ||
"--message_db" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Elasticsearch Generic", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"justMyCode": false, | ||
"args": [ | ||
"tests/adapters/repository/test_generic.py::TestConcurrency::test_expected_version_error_on_version_mismatch", | ||
"--db=ELASTICSEARCH" | ||
] | ||
}, | ||
{ | ||
"name": "Python: Elasticsearch", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"justMyCode": false, | ||
"args": [ | ||
"tests/adapters/model/elasticsearch_model/tests.py::TestModelOptions::TestModelSettings::test_settings_override_in_custom_model", | ||
"--elasticsearch" | ||
] | ||
}, | ||
{ | ||
"name": "Python: All Postgresql", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"args": ["--postgresql"] | ||
}, | ||
{ | ||
"name": "Generic Tests - Postgresql", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"args": [ | ||
"tests/adapters/repository/test_generic.py::TestPersistenceViaRepository::test_that_aggregate_can_be_persisted_with_repository", | ||
"-m", | ||
"database", | ||
"--db=POSTGRESQL", | ||
"-sv" | ||
] | ||
}, | ||
{ | ||
"name": "Generic Tests - Elasticsearch", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"module": "pytest", | ||
"args": [ | ||
"tests/adapters/repository/test_generic.py::TestPersistenceViaRepository::test_that_aggregate_can_be_persisted_with_repository", | ||
"--db=elasticsearch", | ||
"-sv" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"python.testing.pytestArgs": [ | ||
"tests", | ||
"--ignore=tests/support" | ||
], | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.