Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
SMASCH
scheduling-system
Commits
8fbd8ef8
Commit
8fbd8ef8
authored
7 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
code showing how to disable potential problematic redcap tests
parent
f6e3b3cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!129
Resolve "list shown after clicking on notifications"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
smash/web/tests/test_RedcapConnector.py
+2
-0
2 additions, 0 deletions
smash/web/tests/test_RedcapConnector.py
smash/web/tests/view/test_redcap.py
+3
-0
3 additions, 0 deletions
smash/web/tests/view/test_redcap.py
with
5 additions
and
0 deletions
smash/web/tests/test_RedcapConnector.py
+
2
−
0
View file @
8fbd8ef8
# coding=utf-8
import
logging
import
unittest
from
django.test
import
TestCase
...
...
@@ -14,6 +15,7 @@ from web.views.notifications import get_today_midnight_date
logger
=
logging
.
getLogger
(
__name__
)
# @unittest.skip("test redcap server is down")
class
TestRedcapConnector
(
TestCase
):
def
test_invalid_configuration
(
self
):
redcap_connection
=
RedcapConnector
()
...
...
This diff is collapsed.
Click to expand it.
smash/web/tests/view/test_redcap.py
+
3
−
0
View file @
8fbd8ef8
import
logging
import
unittest
from
django.urls
import
reverse
...
...
@@ -13,6 +14,7 @@ class RedcapViewTests(LoggedInTestCase):
response
=
self
.
client
.
get
(
reverse
(
'
web.views.missing_redcap_subject
'
))
self
.
assertEqual
(
response
.
status_code
,
200
)
# @unittest.skip("test redcap server is down")
def
test_render_workers_list_request_with_valid_connection
(
self
):
prepare_test_redcap_connection
()
...
...
@@ -23,6 +25,7 @@ class RedcapViewTests(LoggedInTestCase):
response
=
self
.
client
.
get
(
reverse
(
'
web.views.inconsistent_redcap_subject
'
))
self
.
assertEqual
(
response
.
status_code
,
200
)
# @unittest.skip("test redcap server is down")
def
test_render_add_worker_request_with_valid_connection
(
self
):
prepare_test_redcap_connection
()
...
...
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