Skip to content

Commit

Permalink
add missing inputs test
Browse files Browse the repository at this point in the history
  • Loading branch information
philiporlando committed Jan 1, 2024
1 parent 329206c commit bad7b5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_fgdb_to_gpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,9 @@ def test_layer_already_exists(setup_fgdb_gpkg: tuple[str, str, Literal["test_fc"
# This should raise a warning because the layers already exists
with pytest.warns(UserWarning) as record:
fgdb_to_gpkg(fgdb_path, gpkg_path, overwrite=False)


def test_fgdb_to_gpkg_missing_inputs():
# Test that a type error is raised when no positional arguments are passed
with pytest.raises(TypeError):
fgdb_to_gpkg()

0 comments on commit bad7b5c

Please sign in to comment.