-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored image publishing and tests
- Loading branch information
1 parent
b707915
commit 9dc7251
Showing
7 changed files
with
123 additions
and
35 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
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,9 +1,27 @@ | ||
import pytest | ||
from click.testing import CliRunner | ||
from python_on_whales import DockerClient, Image | ||
from os import getenv | ||
|
||
|
||
@pytest.fixture(scope="package") | ||
def cli_runner() -> CliRunner: | ||
runner = CliRunner() | ||
return runner | ||
|
||
|
||
@pytest.fixture(scope="package") | ||
def python_version() -> str: | ||
python_version: str = getenv("PYTHON_VERSION") | ||
return python_version | ||
|
||
|
||
@pytest.fixture(scope="package") | ||
def os_variant() -> str: | ||
os_variant: str = getenv("OS_VARIANT") | ||
return os_variant | ||
|
||
|
||
@pytest.fixture(scope="package") | ||
def poetry_version() -> str: | ||
poetry_version: str = getenv("POETRY_VERSION") | ||
return poetry_version |
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