mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2025-12-29 15:49:49 +01:00
mv: typing_helpers out of test_data
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
"""Tests for typing helpers"""
|
||||
|
||||
import pytest
|
||||
|
||||
from pytiled_parser import typing_helpers as TH
|
||||
|
||||
TEST_IS_FLOAT_PARAMS = [
|
||||
(1, True),
|
||||
("1", True),
|
||||
(1.1, True),
|
||||
("1.1", True),
|
||||
("one", False),
|
||||
(None, False),
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("string,expected", TEST_IS_FLOAT_PARAMS)
|
||||
def test_is_float(string, expected):
|
||||
assert TH.is_float(string) == expected
|
||||
Reference in New Issue
Block a user