Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daveraja committed Mar 2, 2024
1 parent 9fbe2e4 commit adc3031
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 0 additions & 2 deletions clorm/lib/date.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
# ------------------------------------------------------------------------------




# ------------------------------------------------------------------------------
#
# ------------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion tests/test_forward_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ class P(Predicate):
p = module.P(x=((1, "a"), (2, "b")))
self.assertEqual(str(p), 'p(((1,"a"),(2,"b")))')


def test_forward_ref(self):
def module_():
from typing import ForwardRef
Expand Down
18 changes: 9 additions & 9 deletions tests/test_orm_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,12 +775,12 @@ def test_api_nested_list_field(self):
def test_api_nested_list_field_complex_element_field(self):
XField = define_nested_list_field((IntegerField, (ConstantField, StringField)))

symvalue1 = Function("", [Number(1), Function("", [Function("a",[]), String("A")])])
symvalue2 = Function("", [Number(2), Function("", [Function("b",[]), String("B")])])
symnlist = Function("", [symvalue1, Function("", [symvalue2, Function("",[])])])
symvalue1 = Function("", [Number(1), Function("", [Function("a", []), String("A")])])
symvalue2 = Function("", [Number(2), Function("", [Function("b", []), String("B")])])
symnlist = Function("", [symvalue1, Function("", [symvalue2, Function("", [])])])

value1 = (1,("a", "A"))
value2 = (2,("b", "B"))
value1 = (1, ("a", "A"))
value2 = (2, ("b", "B"))
nlist = (value1, value2)

self.assertEqual(XField.cltopy(symnlist), nlist)
Expand Down Expand Up @@ -827,12 +827,12 @@ def test_api_flat_list_field(self):
def test_api_flat_list_field_complex_element_field(self):
XField = define_flat_list_field((IntegerField, (ConstantField, StringField)))

symvalue1 = Function("", [Number(1), Function("", [Function("a",[]), String("A")])])
symvalue2 = Function("", [Number(2), Function("", [Function("b",[]), String("B")])])
symvalue1 = Function("", [Number(1), Function("", [Function("a", []), String("A")])])
symvalue2 = Function("", [Number(2), Function("", [Function("b", []), String("B")])])
symnlist = Function("", [symvalue1, symvalue2])

value1 = (1,("a", "A"))
value2 = (2,("b", "B"))
value1 = (1, ("a", "A"))
value2 = (2, ("b", "B"))
nlist = (value1, value2)

self.assertEqual(XField.cltopy(symnlist), nlist)
Expand Down

0 comments on commit adc3031

Please sign in to comment.