-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
post debug changes to tests and new run env in tox
- Loading branch information
Showing
22 changed files
with
424 additions
and
358 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
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
Empty file.
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 @@ | ||
import os | ||
import uuid | ||
|
||
|
||
def set_index_suffix(): | ||
index_suffix = os.environ.get("MARQO_INDEX_SUFFIX", None) | ||
if not index_suffix: | ||
os.environ["MARQO_INDEX_SUFFIX"] = str(uuid.uuid4())[:8] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import sys | ||
from create_test_suffix import set_index_suffix | ||
from delete_all_indexes import delete_all_test_indices | ||
|
||
if __name__ == '__main__': | ||
# Generate the random suffix | ||
set_index_suffix() | ||
|
||
# Run the first command to generate the suffix (already done) | ||
# generate_index_suffix.py will set the TEST_INDEX_SUFFIX environment variable | ||
|
||
# Run the second command with the generated suffix and pass posargs to pytest | ||
import pytest | ||
pytest_args = ['tests/', '-m', 'not ignore_cloud_tests'] + sys.argv[1:] | ||
pytest.main(pytest_args) | ||
|
||
# Run the third command that uses the suffix | ||
delete_all_test_indices() |
Oops, something went wrong.