Skip to content

Commit

Permalink
Remove pointless test
Browse files Browse the repository at this point in the history
  • Loading branch information
astrojuanlu committed Jun 5, 2023
1 parent bbb20bc commit ac53a24
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/test_requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from packaging.markers import Marker
from packaging.requirements import InvalidRequirement, Requirement
from packaging.specifiers import SpecifierSet
from packaging.utils import canonicalize_name

EQUAL_DEPENDENCIES = [
("packaging>20.1", "packaging>20.1"),
Expand Down Expand Up @@ -203,17 +202,6 @@ def test_empty_specifier(self) -> None:
assert req.name == "name"
assert req.specifier == ""

def test_canonical_name(self) -> None:
# GIVEN
to_parse = "split_name"

# WHEN
req = Requirement(to_parse)

# THEN
assert req.name == "split_name"
assert canonicalize_name(req.name) == "split-name"

# ----------------------------------------------------------------------------------
# Everything below this (in this class) should be parsing failure modes
# ----------------------------------------------------------------------------------
Expand Down

0 comments on commit ac53a24

Please sign in to comment.