Commit 3aa5444c authored by Matt Traudt's avatar Matt Traudt
Browse files

Move timestmap util tests, and fix them to actually pass

parent 2dc6c860
# -*- coding: utf-8 -*-
"""Test timestamp conversion util functions"""
from datetime import datetime
from datetime import datetime, timezone
from sbws.util.timestamp import (dt_obj_to_isodt_str, unixts_to_dt_obj,
unixts_to_isodt_str, unixts_to_str)
......@@ -8,7 +8,7 @@ from sbws.util.timestamp import (dt_obj_to_isodt_str, unixts_to_dt_obj,
isodt_str = '2018-05-23T12:55:04'
dt_obj = datetime.strptime(isodt_str, '%Y-%m-%dT%H:%M:%S')
unixts = int(dt_obj.timestamp())
unixts = int(dt_obj.replace(tzinfo=timezone.utc).timestamp())
def test_dt_obj_to_isodt_str():
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment