Skip to content

Commit

Permalink
test for encoding issues with insert_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
deargle committed Sep 19, 2019
1 parent 96f79f7 commit 46413b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_psiturk.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ def test_does_not_die_if_no_custompy(remove_file, psiturk_test_client):
remove_file('custom.py')
psiturk_test_client()


def test_insert_mode(psiturk_test_client):
with open('templates/ad.html', 'r') as temp_file:
ad_string = temp_file.read()

from psiturk.experiment import insert_mode
insert_mode(ad_string, 'debug')

class PsiTurkStandardTests(PsiturkUnitTest):

Expand Down

0 comments on commit 46413b3

Please sign in to comment.