Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanHolstien committed Nov 20, 2023
1 parent 12df56b commit 843da55
Showing 1 changed file with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@
def test_quickstart_version_config():
execution_plan = example_version_mapper.get_quickstart_execution_plan("v1.0.0")
expected = QuickstartExecutionPlan(
docker_tag="v1.0.0", composefile_git_ref="v1.0.0", mysql_tag="5.7",
docker_tag="v1.0.0",
composefile_git_ref="v1.0.0",
mysql_tag="5.7",
)
assert execution_plan == expected


def test_quickstart_version_config_default():
execution_plan = example_version_mapper.get_quickstart_execution_plan("v2.0.0")
expected = QuickstartExecutionPlan(
docker_tag="v2.0.0", composefile_git_ref="v2.0.1", mysql_tag="5.7",
docker_tag="v2.0.0",
composefile_git_ref="v2.0.1",
mysql_tag="5.7",
)
assert execution_plan == expected

Expand All @@ -48,11 +52,15 @@ def test_quickstart_version_config_stable():

def test_quickstart_forced_stable():
example_version_mapper.quickstart_version_map["default"] = QuickstartExecutionPlan(
composefile_git_ref="v1.0.1", docker_tag="latest", mysql_tag="5.7",
composefile_git_ref="v1.0.1",
docker_tag="latest",
mysql_tag="5.7",
)
execution_plan = example_version_mapper.get_quickstart_execution_plan(None)
expected = QuickstartExecutionPlan(
docker_tag="latest", composefile_git_ref="v1.0.1", mysql_tag="5.7",
docker_tag="latest",
composefile_git_ref="v1.0.1",
mysql_tag="5.7",
)
assert execution_plan == expected

Expand All @@ -68,14 +76,18 @@ def test_quickstart_forced_not_a_version_tag():
"NOT A VERSION"
)
expected = QuickstartExecutionPlan(
docker_tag="NOT A VERSION", composefile_git_ref="NOT A VERSION", mysql_tag="5.7",
docker_tag="NOT A VERSION",
composefile_git_ref="NOT A VERSION",
mysql_tag="5.7",
)
assert execution_plan == expected


def test_quickstart_get_older_version():
execution_plan = example_version_mapper.get_quickstart_execution_plan("v0.9.6")
expected = QuickstartExecutionPlan(
docker_tag="v0.9.6.1", composefile_git_ref="v0.9.6.1", mysql_tag="5.7",
docker_tag="v0.9.6.1",
composefile_git_ref="v0.9.6.1",
mysql_tag="5.7",
)
assert execution_plan == expected

0 comments on commit 843da55

Please sign in to comment.