Skip to content

Commit

Permalink
refactor: stipulation of new test
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino committed Dec 21, 2024
1 parent c354e39 commit c5aaa8c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_integration/test_commands/test_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def test_deploy_complete_org(cdf_tool_config: CDFToolConfig, build_dir: Path) ->
changed_resources = get_changed_resources(cdf_tool_config, build_dir)
assert not changed_resources, "Redeploying the same resources should not change anything"

changed_source_files = get_changed_source_files(cdf_tool_config, build_dir)
assert not changed_source_files, "Pulling the same source should not change anything"


@pytest.mark.skipif(
sys.version_info < (3, 11), reason="We only run this test on Python 3.11+ to avoid parallelism issues"
Expand Down Expand Up @@ -105,3 +108,7 @@ def get_changed_resources(cdf_tool_config: CDFToolConfig, build_dir: Path) -> di
changed_resources[loader.display_name] = changed

return changed_resources


def get_changed_source_files(cdf_tool_config: CDFToolConfig, build_dir: Path) -> set[Path]:
raise NotImplementedError("Modules pull command is not yet implemented")

0 comments on commit c5aaa8c

Please sign in to comment.