<commit_before>"""
Tests donut/modules/groups/
"""
from donut.testing.fixtures import client
from donut import app
from donut.modules.groups.helpers import get_position_data
from donut.modules.groups.routes import get_positions


# Helpers
def test_get_position_data(client):
    res = get_position_data()
    assert res == [{
        "group_id": 1,
        "pos_id": 3,
        "pos_name": "Head",
        "user_id": 1
    }, {
        "group_id": 1,
        "pos_id": 2,
        "pos_name": "Secretary",
        "user_id": 2
    }]


# Test Routes
def test_get_positions():
    assert get_positions() is not None<commit_msg>the endpoint test had a weird http error<commit_after>"""
Tests donut/modules/groups/
"""
from donut.testing.fixtures import client
from donut import app
from donut.modules.groups.helpers import get_position_data
from donut.modules.groups.routes import get_positions


# Helpers
def test_get_position_data(client):
    res = get_position_data()
    assert res is not None
{'fraction_non_alphanumeric': 0.10330992978936811, 'fraction_numerical': 0.006018054162487462, 'mean_word_length': 3.5779816513761467, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4920926', 'n_tokens_mistral': 327, 'n_tokens_neox': 316, 'n_words': 86}