Skip to content

Commit 102b8cd

Browse files
author
Samuel Jansen
committed
feat: update dependencies
1 parent 5e4cc71 commit 102b8cd

3 files changed

Lines changed: 14 additions & 12 deletions

File tree

‎Tests.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from python_helper import TestHelper
2-
# TestHelper.run(__file__)
2+
TestHelper.run(__file__)
33
# TestHelper.run(
44
# __file__,
55
# runOnly = [
@@ -8,12 +8,12 @@
88
# 'EnumAnnotationTest.python_framework_status'
99
# ]
1010
# )
11-
TestHelper.run(
12-
__file__,
13-
runOnly = [
14-
'TestApiTest.appRun_withSuccess'
15-
]
16-
)
11+
# TestHelper.run(
12+
# __file__,
13+
# runOnly = [
14+
# 'TestApiTest.appRun_withSuccess'
15+
# ]
16+
# )
1717
# SerializerTest.Serializer_isModelTest()
1818
# SerializerTest.Serializer_isJsonifyable()
1919
# SerializerTest.Serializer_jsonifyIt()

‎python_framework/api/src/service/WebBrowser.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ def openUrlInChrome(url) :
2323

2424
def openUrl(url) :
2525
webbrowser.open_new(url)
26+
27+
28+
2629
# import time
2730
# import subprocess
2831
# import os

‎python_framework/api/test/api/src/helper/SerializerTest.py‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from python_helper import log
1+
from python_helper import log, Test
22
from python_framework import Serializer
33
from python_framework import SqlAlchemyProxy as sap
44

@@ -51,18 +51,19 @@ class Child(MODEL) :
5151
father, fatherId = sap.getManyToOne(__tablename__, SELF_REFERENCE_FATHER_NAME, MODEL)
5252
brother, brotherId = sap.getOneToOneChild(__tablename__, BROTHER_NAME, MODEL)
5353

54+
@Test()
5455
def Serializer_isModelTest() :
5556
assert False == Serializer.isModel(generatorFunction())
5657
assert False == Serializer.isModel(MyClass())
5758
assert True == Serializer.isModel(MyEntityClass())
58-
log.debug(Serializer_isModelTest, 'Success')
5959

60+
@Test()
6061
def Serializer_isJsonifyable() :
6162
assert False == Serializer.isJsonifyable(generatorFunction())
6263
assert True == Serializer.isJsonifyable(MyClass())
6364
assert True == Serializer.isJsonifyable(MyEntityClass())
64-
log.debug(Serializer_isJsonifyable, 'Success')
6565

66+
@Test()
6667
def Serializer_jsonifyIt() :
6768
assert '{"myString": "myValue", "myInteger": 0, "myFloat": 0.099}' == Serializer.jsonifyIt(MY_DICTIONARY)
6869

@@ -117,5 +118,3 @@ def Serializer_jsonifyIt() :
117118
myClass.myAttribute = myAttributeClass
118119
assert '{"myAttribute": {"myClass": null, "myNeutralClassAttribute": "someOtherString"}, "myNeutralAttribute": "someString"}' == Serializer.jsonifyIt(myClass)
119120
assert '{"myClass": {"myAttribute": null, "myNeutralAttribute": "someString"}, "myNeutralClassAttribute": "someOtherString"}' == Serializer.jsonifyIt(myClass.myAttribute)
120-
121-
log.debug(Serializer_jsonifyIt, 'Success')

0 commit comments

Comments
 (0)