aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/web_editgroup.py
blob: e6185eda708457278621396fc094bff9faf7e542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

import json
import tempfile
import pytest
from fatcat_client.rest import ApiException
from fixtures import *

def test_web_editgroup(app):

    rv = app.get('/editgroup/aaaaaaaaaaaabo53aaaaaaaaae')
    assert rv.status_code == 200

    rv = app.get('/editgroup/ccccccccccccccccccccccccca')
    assert rv.status_code == 404

    rv = app.get('/editor/aaaaaaaaaaaabkvkaaaaaaaaae')
    assert rv.status_code == 200

    rv = app.get('/editor/aaaaaaaaaaaabkvkaaaaaaaaae/editgroups')
    assert rv.status_code == 200