Skip to content

Commit

Permalink
Removing oldunittests
Browse files Browse the repository at this point in the history
  • Loading branch information
apurvabanka committed Oct 22, 2024
1 parent ed01d62 commit 2b78745
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1,141 deletions.
1 change: 1 addition & 0 deletions tests/features_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def test_network_link_read(self) -> None:
assert network_link.address == "123 Main St"
assert network_link.phone_number == "555-1234"
assert network_link.snippet.text == "This is a snippet"
assert bool(network_link.snippet)
assert network_link.description == "This is a description"
assert network_link.view.latitude == 37.0
assert network_link.view.longitude == -122.0
Expand Down
19 changes: 19 additions & 0 deletions tests/helper_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from fastkml.helpers import subelement_enum_kwarg
from fastkml.helpers import subelement_float_kwarg
from fastkml.helpers import subelement_int_kwarg
from fastkml.helpers import subelement_bool_kwarg
from tests.base import StdLibrary


Expand Down Expand Up @@ -126,3 +127,21 @@ def test_attribute_enum_kwarg(self) -> None:

assert res == {}
element.get.assert_called_once_with("nsnode")

def test_subelement_bool_kwarg(self) -> None:
node = Node()
node.text = ""
element = Mock()
element.find.return_value = node
res = subelement_bool_kwarg(
element=element,
ns="ns",
name_spaces={"name": "uri"},
node_name="node",
kwarg="a",
classes=(bool,),
strict=True,
)

assert res == {}
element.find.assert_called_once_with("nsnode")
Loading

0 comments on commit 2b78745

Please sign in to comment.