summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Lorey <git@karllorey.com>2022-08-18 17:05:04 +0200
committerKarl Lorey <git@karllorey.com>2022-08-18 17:05:04 +0200
commitc0b805843d5ca05ef579a3fbd4f2e5a524688a27 (patch)
treee1e661638c3362589da48dc1ca69da64d3931e5d
parent760215f0a2552f37b4e9b86b02ef0632bc23d1df (diff)
Minor: fix formatting
-rw-r--r--tests/test_examples.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_examples.py b/tests/test_examples.py
index 699da18..ea385aa 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -1,11 +1,12 @@
from examples.quotes_to_scrape import main as quotes_to_scrape_main
-# Example 1 - Quotes to scrape
+
def test_example_quotes_to_scrape():
- '''
+ """
Test if the example quotes_to_scrape.py works
- '''
+ """
- assert quotes_to_scrape_main() == \
- {'name': 'J.K. Rowling', 'born': 'July 31, 1965'}, \
- 'Quotes to scrape example failed'
+ assert quotes_to_scrape_main() == {
+ "name": "J.K. Rowling",
+ "born": "July 31, 1965",
+ }, "Quotes to scrape example failed"