Skip to content

Commit

Permalink
remove sequence test
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert-R committed Dec 20, 2024
1 parent 474569c commit f6bc592
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions backend/experiment/rules/tests/test_categorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,26 +129,3 @@ def test_plan_experiment_and_phase(self):
self.assertEqual(self.session.json_data.get('phase'), 'training-1A')
self.assertEqual(self.session.json_data.get('training_rounds'), '0')
self.assertEqual(self.session.json_data.get('phase'), 'training-1A')

# Test section sequence training phase
if self.session.json_data.get('group') == 'S1':
sections = self.session.playlist.section_set.filter(
group="SAME", tag__contains="1", song__artist__contains="Training")
for section in sections:
self.assertIn(section.id, self.session.json_data.get('sequence'))
if self.session.json_data.get('group') == 'S2':
sections = self.session.playlist.section_set.filter(
group="SAME", tag__contains="2", song__artist__contains="Training")
for section in sections:
self.assertIn(section.id, self.session.json_data.get('sequence'))

if self.session.json_data.get('group') == 'C1':
sections = self.session.playlist.section_set.filter(
group="CROSSED", tag__contains="1", song__artist__contains="Training")
for section in sections:
self.assertIn(section.id, self.session.json_data.get('sequence'))
if self.session.json_data.get('group') == 'C2':
sections = self.session.playlist.section_set.filter(
group="CROSSED", tag__contains="2", song__artist__contains="Training")
for section in sections:
self.assertIn(section.id, self.session.json_data.get('sequence'))

0 comments on commit f6bc592

Please sign in to comment.