-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed: Remove obsolete style keyword (#790)
* fix: Remove unused import and update first_round method in GoldMSI class * chore: Remove unused keyword from Consent's first_round method * test: Add basic unit tests for GoldMSI class
- Loading branch information
1 parent
46e28cf
commit ea1ee64
Showing
3 changed files
with
18 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from .frontend_style import FrontendStyle | ||
from .base_action import BaseAction | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from django.test import TestCase | ||
from experiment.rules.gold_msi import GoldMSI | ||
|
||
|
||
class TestGoldMSI(TestCase): | ||
def test_init(self): | ||
goldMSI = GoldMSI() | ||
assert goldMSI.ID == 'GOLD_MSI' | ||
|
||
def test_first_round(self): | ||
goldMSI = GoldMSI() | ||
result = goldMSI.first_round() | ||
|
||
assert result[0].__class__.__name__ == 'Consent' | ||
assert result[0].ID == 'CONSENT' | ||
|