Skip to content
Snippets Groups Projects
Commit 884c3620 authored by dominip89's avatar dominip89
Browse files

Update test_course_scraper.py

parent ba0644d5
No related branches found
No related tags found
No related merge requests found
"""
Testing module, yo. Just for the course_scraper.py.
"""
from django.test import TestCase
from course_scraper import fetch_website, scraping
from course_scraper import scraping #, fetch_website
class ScraperTestCase(TestCase):
"""
Just a few tests, so pylint isn't getting a fit.
Because reasons.
"""
def test_returns_dict(self):
"""
Testing return type of scraping().
"""
self.assertIsInstance(scraping(), dict)
def test_dict_not_empty(self):
"""
Testing if dict is not empty.
"""
self.assertTrue(len(scraping()) > 0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment