Skip to content

Commit

Permalink
moved old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
glorpen committed Apr 28, 2022
1 parent f164def commit 40af3d8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 169 deletions.
29 changes: 0 additions & 29 deletions src/glorpen/config/exceptions.py

This file was deleted.

140 changes: 0 additions & 140 deletions src/glorpen/config/fields/base.py

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,17 @@ def test_alternative_nested_lists(self):

out = self._render_and_load(f)
self.assertEqual(out, [{'a':1, 'i':1}, {'b':1}])

def test_nested_dict_inside_list(self):
f = List(
Dict({
"k1": Dict({
"k2": Any().help(value=True)
})
})
)

help_str = YamlRenderer().render(f.help_config)
# out = self._render_and_load(f)
print(help_str)
# self.assertEqual(out, [{'a':1, 'i':1}, {'b':1}])

0 comments on commit 40af3d8

Please sign in to comment.