Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
swp-unisport
team-warumkeinrust
Backend
Commits
884c3620
Commit
884c3620
authored
3 years ago
by
dominip89
Browse files
Options
Downloads
Patches
Plain Diff
Update test_course_scraper.py
parent
ba0644d5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unisportomat/course_scraper/test_course_scraper.py
+14
-1
14 additions, 1 deletion
unisportomat/course_scraper/test_course_scraper.py
with
14 additions
and
1 deletion
unisportomat/course_scraper/test_course_scraper.py
+
14
−
1
View file @
884c3620
"""
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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment