Skip to content

Commit

Permalink
move test.py to tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
noobOriented committed Apr 9, 2021
1 parent 372f358 commit 070479e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions backend/api/views/tests/test_image_c.py
Expand Up @@ -16,11 +16,13 @@ def test_post_image_url(client):
fake_datetime_str,
"%Y:%m:%d %H:%M:%S",
).replace(tzinfo=timezone(timedelta(hours=8)))
fake_deletehash = "asdjiwenvnxcvj;"
request_body = {
"url": fake_url,
"Latitude": fake_lat,
"Longitude": fake_lng,
"DateTimeOriginal": fake_datetime_str,
"deletehash": fake_deletehash,
}
test_time = datetime(2019, 11, 11, 11, 11, 11, tzinfo=timezone(timedelta(hours=8)))
with freeze_time(test_time):
Expand Down
Empty file.
@@ -1,9 +1,9 @@
from . import code2name
from .. import code2name

from conftest import SuperSet


def test_code2name(self):
def test_code2name():
assert code2name == SuperSet({
"64000006": "高雄市兵役局",
"10017006": "臺灣省基隆市民政處",
Expand Down

0 comments on commit 070479e

Please sign in to comment.