Skip to content

TEST: add edge case tests for simport function (empty string, None)#1400

Open
AshishRaj97 wants to merge 1 commit into
pysal:mainfrom
AshishRaj97:add_simport_edge_tests
Open

TEST: add edge case tests for simport function (empty string, None)#1400
AshishRaj97 wants to merge 1 commit into
pysal:mainfrom
AshishRaj97:add_simport_edge_tests

Conversation

@AshishRaj97

Copy link
Copy Markdown

Checklist before submitting PR

  1. You have run tests on this submission locally with pytest.

  2. This submission is formatted and linted with ruff.

  3. Docstrings and coverage are updated where applicable.

  4. This pull request is directed to the pysal/main branch.

  5. A reviewer has been assigned and relevant labels added.

  6. Justification for this PR:

    Added edge case tests for the simport function:

    • Handling empty string input: simport("")
    • Handling None input: simport(None)

    These tests ensure that simport safely returns (False, None) for invalid module names without crashing, improving test coverage and robustness.

@AshishRaj97

Copy link
Copy Markdown
Author

Hi! This is my first contribution to PySAL.
CI may require approval to run — thank you for taking a look when convenient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant