Skip to content

Commit

Permalink
Add Mailchimp to test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
spicyyboi committed Oct 25, 2021
1 parent 08f5f78 commit 1e340f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fixtures/file
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,5 @@ https://hooks.slack.com/services/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

doi:10.1392/BC1.0
10.1000/123

a80122b2565c3e26a61cbf58d1d1aad7-us5
7 changes: 7 additions & 0 deletions tests/test_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,13 @@ def test_file_fixture_doi():
assert re.findall("DOI", str(result.output))


def test_file_fixture_mailchimp():
runner = CliRunner()
result = runner.invoke(main, ["-db", "fixtures/file"])
assert result.exit_code == 0
assert re.findall("Mailchimp", str(result.output))


def test_file_cors():
runner = CliRunner()
result = runner.invoke(main, ["-db", "Access-Control-Allow: *"])
Expand Down

0 comments on commit 1e340f2

Please sign in to comment.