-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this commit is part of part of supporting Django 3.2 upgrade, for more context: edx/upgrades#68, the changes are: 1. Removing nose as a tool for testing 2. Adding pytest as the alternative 3. Updating the requirments to reflect 1 and 2 4 Adding a test which tests the deafult value of the Xblock model
- Loading branch information
1 parent
4209ab3
commit 8204d8b
Showing
11 changed files
with
69 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from xblock.test.tools import TestRuntime as Runtime | ||
from xblock.runtime import DictKeyValueStore, KvsFieldData | ||
from invideoquiz import InVideoQuizXBlock | ||
from unittest.mock import Mock | ||
|
||
|
||
def test_invideoquiz_model(): | ||
"""Tests for the default fields value of invideoquiz""" | ||
key_store = DictKeyValueStore() | ||
field_data = KvsFieldData(key_store) | ||
runtime = Runtime(services={'field-data': field_data}) | ||
instance = InVideoQuizXBlock(runtime, scope_ids=Mock()) | ||
assert instance.display_name == 'In-Video Quiz XBlock' | ||
assert instance.timemap == '{}' | ||
assert instance.video_id == '' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
-c constraints.txt | ||
|
||
Django | ||
django_nose | ||
six | ||
XBlock | ||
xblock-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
coverage | ||
mock | ||
pytest-django |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[metadata] | ||
description-file = README.markdown | ||
|
||
[nosetests] | ||
cover-package=invideoquiz | ||
cover-tests=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters