-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The pytoml package is deprecated, and doesn't support the most recent TOML standard (e.g. dotted keys).
- Loading branch information
1 parent
88b4a6c
commit b81b1da
Showing
12 changed files
with
21 additions
and
21 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
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
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
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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
from unittest.mock import patch | ||
import pytest | ||
|
||
import pytoml | ||
import toml | ||
|
||
from flit import init | ||
|
||
|
@@ -107,7 +107,7 @@ def test_init(): | |
generated = Path(td) / 'pyproject.toml' | ||
assert_isfile(generated) | ||
with generated.open() as f: | ||
data = pytoml.load(f) | ||
data = toml.load(f) | ||
assert data['tool']['flit']['metadata'][ | ||
'author-email'] == "[email protected]" | ||
license = Path(td) / 'LICENSE' | ||
|
@@ -131,7 +131,7 @@ def test_init_homepage_and_license_are_optional(): | |
ti = init.TerminalIniter(td) | ||
ti.initialise() | ||
with Path(td, 'pyproject.toml').open() as f: | ||
data = pytoml.load(f) | ||
data = toml.load(f) | ||
assert not Path(td, 'LICENSE').exists() | ||
metadata = data['tool']['flit']['metadata'] | ||
assert metadata == { | ||
|
@@ -154,7 +154,7 @@ def test_init_homepage_validator(): | |
ti = init.TerminalIniter(td) | ||
ti.initialise() | ||
with Path(td, 'pyproject.toml').open() as f: | ||
data = pytoml.load(f) | ||
data = toml.load(f) | ||
metadata = data['tool']['flit']['metadata'] | ||
assert metadata == { | ||
'author': 'Test Author', | ||
|
@@ -176,7 +176,7 @@ def test_author_email_field_is_optional(): | |
ti = init.TerminalIniter(td) | ||
ti.initialise() | ||
with Path(td, 'pyproject.toml').open() as f: | ||
data = pytoml.load(f) | ||
data = toml.load(f) | ||
assert not Path(td, 'LICENSE').exists() | ||
metadata = data['tool']['flit']['metadata'] | ||
assert metadata == { | ||
|
@@ -216,7 +216,7 @@ def test_init_readme_found_yes_choosen(): | |
ti = init.TerminalIniter(td) | ||
ti.initialise() | ||
with Path(td, 'pyproject.toml').open() as f: | ||
data = pytoml.load(f) | ||
data = toml.load(f) | ||
|
||
metadata = data['tool']['flit']['metadata'] | ||
assert metadata == { | ||
|
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ deps = | |
testpath | ||
responses | ||
docutils | ||
pytoml | ||
toml | ||
pytest>=2.7.3 | ||
pytest-cov | ||
|
||
|