You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Post #2567 in testing branch we have the following similar test failures related to types:
buildvm:/opt/rockstor/src/rockstor # poetry run django-admin test -v 2
...
======================================================================
FAIL: test_create (rockstor.storageadmin.tests.test_shares.ShareTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/tests/test_shares.py", line 344, in test_create
self.assertEqual(response9.data[0], e_msg7)
AssertionError: "Replica must be a boolean, not (<class 'str'>)." != "Replica must be a boolean, not (<type 'unicode'>)."
- Replica must be a boolean, not (<class 'str'>).
? ^^^^^^^^^
+ Replica must be a boolean, not (<type 'unicode'>).
? +++++++++ ^^^
======================================================================
FAIL: test_post_requests_2 (rockstor.storageadmin.tests.test_snapshot.SnapshotTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/storageadmin/tests/test_snapshot.py", line 156, in test_post_requests_2
self.assertEqual(response.data[0], e_msg)
AssertionError: "Element 'uvisible' must be a boolean, not (<class 'str'>)." != "Element 'uvisible' must be a boolean, not (<type 'unicode'>)."
- Element 'uvisible' must be a boolean, not (<class 'str'>).
? ^^^^^^^^^
+ Element 'uvisible' must be a boolean, not (<type 'unicode'>).
?
test_shares.py", line 344, in test_create
test_snapshot.py", line 156, in test_post_requests_2
The text was updated successfully, but these errors were encountered:
Modify testing code to expect new <class 'str'> in test data
presented rather than our prior Py2.7 interpretation by tested
code of test data as <type 'unicode'> Other tests using the
proper boolean type pass as expected so that we are only
looking at interpretation of invalid test data type here.
But it is important to note that this type/class change is
in play re our Py3.6 base.
Post #2567 in testing branch we have the following similar test failures related to types:
The text was updated successfully, but these errors were encountered: