Skip to content

Commit

Permalink
refactor: Remove print statements from test
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jan 4, 2024
1 parent db6c6a0 commit c26e8e1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions backend/experiment/tests/test_admin_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class MockRequest:
this_experiment_admin = ExperimentAdmin(
model=Experiment, admin_site=AdminSite)

class TestAdminExperiment(TestCase):
class TestAdminExperiment(TestCase):

@classmethod
def setUpTestData(cls):
Expand Down Expand Up @@ -62,20 +62,18 @@ def test_participant_model(self):
participant_fields = [key for key in participant]
self.assertEqual(len(participant_fields), EXPECTED_PARTICIPANT_FIELDS)



class TestAdminExperimentExport(TestCase):

fixtures = ['playlist', 'experiment']

@classmethod
def setUpTestData(cls):
cls.participant = Participant.objects.create(unique_hash=42)
cls.experiment = Experiment.objects.get(name='Hooked-China')
print(cls.experiment)
for playlist in cls.experiment.playlists.all():
playlist.update_sections()
print(cls.experiment.pk)
playlist.update_sections()
cls.session = Session.objects.create(
experiment=cls.experiment,
participant=cls.participant,
Expand All @@ -91,7 +89,7 @@ def setUpTestData(cls):
question_key= i,
given_response = i
)

def setUp(self):
self.client = Client()

Expand Down

0 comments on commit c26e8e1

Please sign in to comment.