-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed
aastex.CorrespondingAuthor
, and added aastex.Author.email
…
… field. (#2)
- Loading branch information
Showing
2 changed files
with
29 additions
and
41 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 |
---|---|---|
|
@@ -41,6 +41,7 @@ def test_dumps(self, a: aastex.Affiliation): | |
aastex.Author( | ||
name="Jane Doe", | ||
affiliation=aastex.Affiliation("Fancy University"), | ||
email="[email protected]", | ||
), | ||
], | ||
) | ||
|
@@ -51,26 +52,10 @@ def test_name(self, a: aastex.Author): | |
def test_affiliation(self, a: aastex.Author): | ||
assert isinstance(a.affiliation, aastex.Affiliation) | ||
|
||
def test_dumps(self, a: aastex.Author): | ||
assert isinstance(a.dumps(), str) | ||
|
||
|
||
@pytest.mark.parametrize( | ||
argnames="a", | ||
argvalues=[ | ||
aastex.CorrespondingAuthor( | ||
name="Jane Doe", | ||
email="[email protected]", | ||
), | ||
], | ||
) | ||
class TestCorrespondingAuthor: | ||
|
||
def test_name(self, a: aastex.Author): | ||
assert isinstance(a.name, str) | ||
|
||
def test_email(self, a: aastex.Author): | ||
assert isinstance(a.email, str) | ||
result = a.email | ||
if result is not None: | ||
assert isinstance(result, str) | ||
|
||
def test_dumps(self, a: aastex.Author): | ||
assert isinstance(a.dumps(), str) | ||
|