Skip to content

Commit 22af3a9

Browse files
committed
refactor(clean): remove all hydration and dehydrate code and tests
1 parent fd74c9e commit 22af3a9

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

‎tests/test_final.py‎

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from pyfwf.columns import CharColumn
55
from pyfwf.descriptors import DetailRowDescriptor, FileDescriptor
6-
from pyfwf.hydrating import dehydrate_object
76
from pyfwf.readers import Reader
87

98

@@ -49,22 +48,3 @@ def test_unsupported_iterable_type(self):
4948
"""Test that Reader rejects unsupported iterable types"""
5049
# Tuple with one element per line works, but dict should not
5150
self.assertRaisesRegex(TypeError, "Unsupported Iterable", Reader, {}, self.fd)
52-
53-
54-
class TestDehydrateWithAttributes(TestCase):
55-
"""Test dehydrate_object with attributes"""
56-
57-
def test_dehydrate_with_attributes_hydrator(self):
58-
"""Test dehydration with Hydrator object attributes"""
59-
from test_hydrating import WeCanTest
60-
61-
obj = WeCanTest()
62-
obj.hydrating_attributes = ["nested"]
63-
obj.nested = WeCanTest()
64-
obj.nested.hydrating_kwargs = ["who"]
65-
obj.nested.who = "me"
66-
67-
result = dehydrate_object(obj)
68-
self.assertIn("attributes", result)
69-
self.assertIn("nested", result["attributes"])
70-
self.assertIsInstance(result["attributes"]["nested"], dict)

0 commit comments

Comments
 (0)