Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BeritJanssen committed Jan 15, 2024
1 parent 87644a6 commit 21a8058
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions backend/experiment/rules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from .toontjehoger_4_absolute import ToontjeHoger4Absolute
from .toontjehoger_5_tempo import ToontjeHoger5Tempo
from .toontjehoger_6_relative import ToontjeHoger6Relative
from .visual_matching_pairs import VisualMatchingPairs
from .visual_matching_pairs import VisualMatchingPairsGame

# Rules available to this application
# If you create new Rules, add them to the list
Expand Down Expand Up @@ -67,5 +67,5 @@
Eurovision2020.ID: Eurovision2020,
Kuiper2020.ID: Kuiper2020,
ThatsMySong.ID: ThatsMySong,
VisualMatchingPairs.ID: VisualMatchingPairs
VisualMatchingPairsGame.ID: VisualMatchingPairsGame
}
4 changes: 2 additions & 2 deletions backend/experiment/rules/tests/test_visual_matching_pairs.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from django.test import TestCase

from experiment.models import Experiment
from experiment.rules import VisualMatchingPairs
from experiment.rules import VisualMatchingPairsGame
from participant.models import Participant
from section.models import Playlist
from session.models import Session
Expand Down Expand Up @@ -35,7 +35,7 @@ def setUpTestData(self):
participant=self.participant,
playlist=self.playlist
)
self.rules = VisualMatchingPairs()
self.rules = VisualMatchingPairsGame()

def test_visual_matching_pairs_trial(self):
trial = self.rules.get_visual_matching_pairs_trial(self.session)
Expand Down
4 changes: 2 additions & 2 deletions backend/experiment/rules/visual_matching_pairs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

from .base import Base
from experiment.actions import Consent, Explainer, Final, Playlist, StartSession, Step, Trial
from experiment.actions.playback import Playback
from experiment.actions.playback import VisualMatchingPairs
from experiment.questions.demographics import EXTRA_DEMOGRAPHICS
from experiment.questions.utils import question_by_key
from result.utils import prepare_result

from section.models import Section


class VisualMatchingPairs(Base):
class VisualMatchingPairsGame(Base):
ID = 'VISUAL_MATCHING_PAIRS'
num_pairs = 8
contact_email = 'aml.tunetwins@gmail.com'
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Preload/Preload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useState } from "react";
import classNames from "classnames";

import { MEDIA_ROOT } from "./config";
import { MEDIA_ROOT } from "../../config";
import ListenFeedback from "../Listen/ListenFeedback";
import CountDown from "../CountDown/CountDown";
import * as audio from "../../util/audio";
Expand Down

0 comments on commit 21a8058

Please sign in to comment.