Skip to content

TEST: Add test for _installed_version with nonexistent package#1408

Open
nimra06 wants to merge 2 commits into
pysal:mainfrom
nimra06:test/add-nonexistent-package-test
Open

TEST: Add test for _installed_version with nonexistent package#1408
nimra06 wants to merge 2 commits into
pysal:mainfrom
nimra06:test/add-nonexistent-package-test

Conversation

@nimra06

@nimra06 nimra06 commented Jan 26, 2026

Copy link
Copy Markdown

What This Does

Adds the missing test case for _installed_version() when called with a nonexistent package. The function correctly returns 'NA', but the test was never added (there was a comment saying it was skipped due to a bug that doesn't actually exist).

Changes

  • Added test_installed_version_for_nonexistent_package() method
  • Removed outdated comment about NameError bug
  • Test verifies function returns 'NA' for nonexistent packages

Checklist

  • Tests pass locally
  • Code is formatted and linted
  • PR is directed to pysal/main branch

Related

Closes #1407

- Add test_installed_version_for_nonexistent_package() method
- Remove outdated comment about NameError bug
- Verifies function correctly returns 'NA' for nonexistent packages
@jGaboardi

Copy link
Copy Markdown
Member

@nimra06 please update this PR against current main

@nimra06

nimra06 commented Feb 8, 2026

Copy link
Copy Markdown
Author

@jGaboardi Updated the PR with the current main. Thanks for the review!

@nimra06 nimra06 closed this Apr 14, 2026
@nimra06 nimra06 reopened this Apr 14, 2026
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.

Add missing test for _installed_version with nonexistent package

3 participants