Figured out the accepted DateType formats
This commit is contained in:
@@ -93,11 +93,10 @@ class TypeTests(unittest.TestCase):
|
|||||||
Test cassandra.cqltypes.DateType() construction
|
Test cassandra.cqltypes.DateType() construction
|
||||||
"""
|
"""
|
||||||
|
|
||||||
pass
|
# Ensure all formats can be parsed, without exception
|
||||||
# TODO: Figure out the required format here
|
for format in cassandra.cqltypes.cql_time_formats:
|
||||||
# date_string = str(datetime.datetime.now().strftime('%s.%f'))
|
date_string = str(datetime.datetime.now().strftime(format))
|
||||||
# print date_string
|
cassandra.cqltypes.DateType(date_string)
|
||||||
# print cassandra.cqltypes.DateType(date_string)
|
|
||||||
|
|
||||||
def test_cql_typename(self):
|
def test_cql_typename(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user