-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix redshift event listener interaction with the session keyword. (
#171)
- Loading branch information
Showing
9 changed files
with
437 additions
and
334 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,21 @@ | ||
import uuid | ||
|
||
import pytest | ||
|
||
|
||
def generate_fixture_id(enabled: bool = True, name=""): | ||
if enabled: | ||
uuid_str = str(uuid.uuid4()).replace("-", "_") | ||
return "_".join(["pmr_template", name, uuid_str]) | ||
return None | ||
|
||
|
||
def asyncio_fixture(async_fixture, scope="function"): | ||
# pytest-asyncio in versions >=0.17 force you to use a `pytest_asyncio.fixture` | ||
# call instead of `pytest.fixture`. Given that this would introduce an unncessary | ||
# dependency on pytest-asyncio (when there are other alternatives) seems less than | ||
# ideal, so instead we can just set the flag that they set, as the indicator. | ||
async_fixture._force_asyncio_fixture = True | ||
|
||
fixture = pytest.fixture(scope=scope) | ||
return fixture(async_fixture) |
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