Skip to content

Commit

Permalink
LibraryPort: Remove snapshottest
Browse files Browse the repository at this point in the history
Signed-off-by: Gabe Goodhart <[email protected]>
  • Loading branch information
gabe-l-hart committed Nov 21, 2023
1 parent 9fde7a1 commit 68584bf
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 33 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ dev-test = [
"pytest-cov>=2.10.1",
"pytest-timeout>=2.1.0,<3",
"dill>=0.3.4,<0.4",
"snapshottest>=0.6.0,<0.7.0",
"Flask>=2.3,<3",
]

Expand Down
Empty file removed tests/snapshots/__init__.py
Empty file.
30 changes: 0 additions & 30 deletions tests/snapshots/snap_test_utils.py

This file was deleted.

21 changes: 19 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def __init__(self, **kwargs):
return OpenApiResource


def test_sanitize_for_serialization_types(snapshot):
def test_sanitize_for_serialization_types():
"""Make sure that the internal resource name is formatted correctly.
This one is also pretty basic...
"""
Expand Down Expand Up @@ -216,7 +216,24 @@ def test_sanitize_for_serialization_types(snapshot):
},
),
)
snapshot.assert_match(output_dict)
assert output_dict[0] == {
"kind": "Foo",
"metadata": {"name": "test"},
"spec": {
"date": "2020-01-01T00:00:00",
"list": ["listitem"],
"openapiType": {
"apiVersion": "v1",
"kind": "Test",
"metadata": {"name": "test"},
"spec": {"container": []},
"status": {"reconciledVersion": 1},
},
"resourceNode": {"metadata": {"name": "test"}},
"should_be_empty": {},
"tuple": ("tupleitem",),
},
}


## Manifest Version #################################################
Expand Down

0 comments on commit 68584bf

Please sign in to comment.