-
Notifications
You must be signed in to change notification settings - Fork 35
Tools/PlausibilityCheck-ModelCheck #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run these files through Pylint. You will see following issues:
Module PlausibilityCheck
RFEM\Tools\PlausibilityCheck.py:26:0: C0303: Trailing whitespace (trailing-whitespace)
RFEM\Tools\PlausibilityCheck.py:38:0: C0304: Final newline missing (missing-final-newline)
RFEM\Tools\PlausibilityCheck.py:12:0: W1405: Quote delimiter ' is inconsistent with the rest of the file (inconsistent-quotes)
RFEM\Tools\PlausibilityCheck.py:1:0: C0103: Module name "PlausibilityCheck" doesn't conform to '^(?[a-z][a-z0-9]*|init)$' pattern (invalid-name)
RFEM\Tools\PlausibilityCheck.py:22:8: R1703: The if statement can be replaced with 'return bool(test)' (simplifiable-if-statement) or ternary operator for simplyfication.
RFEM\Tools\PlausibilityCheck.py:2:0: W0611: Unused Message imported from suds.wsdl (unused-import)
Module ModelCheck
RFEM\Tools\ModelCheck.py:1:0: C0103: Module name "ModelCheck" doesn't conform to '^(?[a-z][a-z0-9]*|init)$' pattern (invalid-name)
RFEM\Tools\ModelCheck.py:2:0: W0611: Unused Message imported from suds.wsdl (unused-import)
RFEM\Tools\ModelCheck.py:3:0: W0611: Unused Member imported from RFEM.BasicObjects.member (unused-import)
Module test_ModelCheck
UnitTests\test_ModelCheck.py:40:0: C0303: Trailing whitespace (trailing-whitespace)
UnitTests\test_ModelCheck.py:56:0: C0303: Trailing whitespace (trailing-whitespace)
UnitTests\test_ModelCheck.py:89:0: C0304: Final newline missing (missing-final-newline)
UnitTests\test_ModelCheck.py:4:0: W1405: Quote delimiter " is inconsistent with the rest of the file (inconsistent-quotes)
UnitTests\test_ModelCheck.py:1:0: C0103: Module name "test_ModelCheck" doesn't conform to '^(?[a-z][a-z0-9]*|init)$' pattern (invalid-name)
UnitTests\test_ModelCheck.py:3:0: W0611: Unused coroutine imported from types (unused-import)
Module test_plausiblityCheck
UnitTests\test_plausiblityCheck.py:56:0: C0303: Trailing whitespace (trailing-whitespace)
UnitTests\test_plausiblityCheck.py:3:0: W1405: Quote delimiter " is inconsistent with the rest of the file (inconsistent-quotes)
UnitTests\test_plausiblityCheck.py:1:0: C0103: Module name "test_plausiblityCheck" doesn't conform to '^(?[a-z][a-z0-9]*|init)$' pattern (invalid-name)
Runnig tests directly from files return following messages. Tesed on RFEM versions US-8137_b124910_8db61b3d75f and master_b124924_d961bfd4145.
test_plausiblityCheck.py
Connecting to server...
Resetting model...
Ready!
Web service reported a SOAP processing fault using an unexpected HTTP status code 200. Reporting as an internal server error.
<suds.sax.document.Document object at 0x0000023099329208>
Traceback (most recent call last):
File "d:\Sources\RFEM_Python_Client_5\UnitTests\test_plausiblityCheck.py", line 52, in
check = PlausiblityCheck()
File ".\RFEM\Tools\PlausibilityCheck.py", line 9, in init
response = clientModel.service.plausibility_check()
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 521, in call
return client.invoke(args, kwargs)
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 581, in invoke
result = self.send(soapenv)
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 621, in send
original_soapenv=original_soapenv)
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 670, in process_reply
raise WebFault(fault, replyroot)
suds.WebFault: Server raised fault: 'The value '' is not of the type Boolean.'
test_ModelCheck.py
Connecting to server...
Resetting model...
Ready!
Traceback (most recent call last):
File "d:\Sources\RFEM_Python_Client_5\UnitTests\test_ModelCheck.py", line 72, in
identical_nodes = ModelCheck.GetIdenticalNodes(0, 0.0005)
File ".\RFEM\Tools\ModelCheck.py", line 21, in GetIdenticalNodes
object_groups = clientModel.service.model_check__get_object_groups_operation(operation, tolerance)
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 283, in getattr
return getattr(port, name)
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 387, in getattr
return getattr(m, name)
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 478, in getattr
return self[name]
File "C:\Users\MichalO\AppData\Roaming\Python\Python36\site-packages\suds\client.py", line 491, in getitem
raise MethodNotFound(qn)
suds.MethodNotFound: Method not found: 'RfemModel.RfemModelPort.model_check__get_object_groups_operation'
|
Pylint issues resolved. |
…lausibility Updated unit test
PlausibilityCheck() updated
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
-Plausibility Check added
-Plausibility Check Test added