Skip to content

Commit

Permalink
[TEST] static methods testing [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Nov 15, 2023
1 parent 4892f5c commit 517fc41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/pipelines/test_team_08MQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_subject_information():
@mark.unit_test
def test_run_level_contrasts():
""" Test the get_run_level_contrasts method """
contrasts = PipelineTeam08MQ().get_run_level_contrasts()
contrasts = PipelineTeam08MQ.get_run_level_contrasts()

assert contrasts[0] == ('positive_effect_gain', 'T', ['gain', 'loss'], [1, 0])
assert contrasts[0] == ('positive_effect_loss', 'T', ['gain', 'loss'], [0, 1])
Expand All @@ -89,15 +89,15 @@ def test_subgroups_contrasts():
def test_one_sample_t_test_regressors():
""" Test the get_one_sample_t_test_regressors method """

regressors = PipelineTeam08MQ().get_one_sample_t_test_regressors(['001', '002'])
regressors = PipelineTeam08MQ.get_one_sample_t_test_regressors(['001', '002'])
assert regressors == [1, 1]

@staticmethod
@mark.unit_test
def test_two_sample_t_test_regressors():
""" Test the get_two_sample_t_test_regressors method """

regressors, groups = PipelineTeam08MQ().get_two_sample_t_test_regressors(
regressors, groups = PipelineTeam08MQ.get_two_sample_t_test_regressors(
['001', '003'], # equalRange group
['002', '004'], # equalIndifference group
['001', '002', '003', '004'] # all subjects
Expand Down

0 comments on commit 517fc41

Please sign in to comment.