datadouble 0.0.3__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {datadouble-0.0.3 → datadouble-0.0.4}/PKG-INFO +1 -1
- {datadouble-0.0.3 → datadouble-0.0.4}/pyproject.toml +1 -1
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/planner.py +4 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_planner.py +5 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/.gitignore +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/LICENSE +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/README.md +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/__init__.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/announce.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/anonymize.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/api.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/boundary.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/catalog.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/channels.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/ci.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/cli.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/closure.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/engine.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/files.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/images.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/jailer.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/names.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/notify.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/objects.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/outcome.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/pii.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/programs.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/promote.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/prune.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/py.typed +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/redaction.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/registry.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/replicate.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/resolve.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/run.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/runtime.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/secrets.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/settings.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/signing.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/spec.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/staging.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/storage.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/strict.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/subset.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/verify.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/src/datadouble/versions.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/conftest.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/fake_engine.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/fakes.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_anonymize_pii.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_api.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_catalog.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_ci.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_cli.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_closure.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_commands.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_commands_operations.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_extends.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_files.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_jailer.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_notify.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_objects.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_operations.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_programs.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_redaction.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_resolve_strict.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_run.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_runtime.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_spec.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_storage_images.py +0 -0
- {datadouble-0.0.3 → datadouble-0.0.4}/tests/test_subset.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: datadouble
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.4
|
|
4
4
|
Summary: Realistic, safe copies of production data for development and testing
|
|
5
5
|
Project-URL: Homepage, https://datadouble.tightlinesoftware.com/
|
|
6
6
|
Project-URL: Source, https://github.com/datadouble/datadouble
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
name = "datadouble"
|
|
6
6
|
# All packages share one version until 1.0 (decision 38); scripts/make_tag.py
|
|
7
7
|
# sets it at release time.
|
|
8
|
-
version = "0.0.
|
|
8
|
+
version = "0.0.4"
|
|
9
9
|
description = "Realistic, safe copies of production data for development and testing"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
license = "MIT"
|
|
@@ -673,6 +673,10 @@ class _Planner:
|
|
|
673
673
|
def check_edge(
|
|
674
674
|
self, edge: Edge, rules: dict[TableName, TableRule], excluded: frozenset[TableName]
|
|
675
675
|
) -> None:
|
|
676
|
+
child_rule = rules.get(edge.child)
|
|
677
|
+
if child_rule is None or not child_rule.rows_kept:
|
|
678
|
+
# A child without rows references nothing, so its references need no fallback.
|
|
679
|
+
return
|
|
676
680
|
parent_rule = rules.get(edge.parent)
|
|
677
681
|
parent_keeps_rows = parent_rule is not None and parent_rule.rows_kept
|
|
678
682
|
if edge.mode in {EdgeMode.FOLLOW, EdgeMode.ALL} and not parent_keeps_rows:
|
|
@@ -350,6 +350,11 @@ def test_structure_only_parents_need_fallbacks() -> None:
|
|
|
350
350
|
assert any("keeps no rows" in p for p in reasons)
|
|
351
351
|
|
|
352
352
|
|
|
353
|
+
def test_a_child_without_rows_needs_no_fallback() -> None:
|
|
354
|
+
reasons = problems('structure_only: ["categories", "posts"]')
|
|
355
|
+
assert not any("posts_category_id_fkey" in p for p in reasons)
|
|
356
|
+
|
|
357
|
+
|
|
353
358
|
def test_fallback_checks() -> None:
|
|
354
359
|
reasons = problems(
|
|
355
360
|
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|