Skip to content

Commit

Permalink
Fix botched merge
Browse files Browse the repository at this point in the history
  • Loading branch information
wookasz committed Dec 19, 2024
1 parent 1fe362d commit 67d0320
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
1 change: 1 addition & 0 deletions tests/test_convert_to_json_serializable.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import re

import numpy as np
Expand Down
19 changes: 0 additions & 19 deletions tests/test_ge_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,22 +557,3 @@ def test_convert_ndarray_float_to_datetime_tuple(
def test_hyphen():
txt: str = "validation_result"
assert hyphen(txt=txt) == "validation-result"
<<<<<<< HEAD


@pytest.mark.unit
@pytest.mark.parametrize(
"data", [pytest.param({"t": datetime.time(hour=1, minute=30, second=45)}, id="datetime.time")]
)
def test_convert_to_json_serializable_converts_correctly(data: dict):
ret = convert_to_json_serializable(data)
assert ret == {"t": "01:30:45"}


@pytest.mark.unit
@pytest.mark.parametrize(
"data", [pytest.param({"t": datetime.time(hour=1, minute=30, second=45)}, id="datetime.time")]
)
def test_ensure_json_serializable(data: dict):
ensure_json_serializable(data)
# Passes if no exception raised

0 comments on commit 67d0320

Please sign in to comment.