Skip to content

Commit

Permalink
run fix-style
Browse files Browse the repository at this point in the history
  • Loading branch information
bgunnar5 committed Jun 26, 2024
1 parent a6b52d0 commit 5945c36
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def create_encryption_file(key_filepath: str, encryption_key: bytes, app_yaml_fi
######### Fixture Definitions #########
#######################################


@pytest.fixture(scope="session")
def temp_output_dir(tmp_path_factory: TempPathFactory) -> str:
"""
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from tests.unit.study.status_test_files import status_test_variables


# pylint: disable=redefined-outer-name


Expand Down
16 changes: 6 additions & 10 deletions tests/unit/server/test_server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,16 @@ def test_parse_redis_output_with_basic_input(line: Union[None, bytes], expected_
@pytest.mark.parametrize(
"lines, expected_config",
[
( # Testing setting vars before initialized message
b"port=6379 blah blah server=127.0.0.1\n"
b"Server initialized\n"
b"Ready to accept connections",
( # Testing setting vars before initialized message
b"port=6379 blah blah server=127.0.0.1\nServer initialized\nReady to accept connections",
{"port": "6379", "server": "127.0.0.1"},
),
( # Testing setting vars after initialized message
b"Server initialized\n"
b"port=6379 blah blah server=127.0.0.1\n"
b"Ready to accept connections",
( # Testing setting vars after initialized message
b"Server initialized\nport=6379 blah blah server=127.0.0.1\nReady to accept connections",
{},
),
( # Testing setting vars before + after initialized message
b"blah blah max_connections=100 blah"
( # Testing setting vars before + after initialized message
b"blah blah max_connections=100 blah\n"
b"Server initialized\n"
b"port=6379 blah blah server=127.0.0.1\n"
b"Ready to accept connections",
Expand Down

0 comments on commit 5945c36

Please sign in to comment.