-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix formatting of tests and change dash deprecation method name
- Loading branch information
1 parent
938a339
commit 7129ad1
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -507,10 +507,9 @@ def test_not_utf8(self, tmpdir): | |
with get_dist(tmpdir): | ||
pass | ||
|
||
def test_dash_to_underscore_warning(self, tmpdir): | ||
# dash_to_underscore_warning() is a method in setuptools.dist | ||
# remove this test and method when dash convert to underscore in setup.cfg | ||
# is no longer supported | ||
def test_warn_dash_deprecation(self, tmpdir): | ||
# warn_dash_deprecation() is a method in setuptools.dist | ||
# remove this test and the method when no longer needed | ||
fake_env( | ||
tmpdir, | ||
'[metadata]\n' | ||
|
@@ -523,11 +522,12 @@ def test_dash_to_underscore_warning(self, tmpdir): | |
with pytest.warns(UserWarning, match=msg): | ||
with get_dist(tmpdir) as dist: | ||
metadata = dist.metadata | ||
assert metadata.author_email == '[email protected]' | ||
assert metadata.maintainer_email == '[email protected]' | ||
|
||
def test_uppercase_warning(self, tmpdir): | ||
# remove this test and the method uppercase_warning() in setuptools.dist | ||
assert metadata.author_email == '[email protected]' | ||
assert metadata.maintainer_email == '[email protected]' | ||
|
||
def test_make_option_lowercase(self, tmpdir): | ||
# remove this test and the method make_option_lowercase() in setuptools.dist | ||
# when no longer needed | ||
fake_env( | ||
tmpdir, | ||
|