File: test_status.py

package info (click to toggle)
pychurchtools 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 408 kB
  • sloc: python: 2,060; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 307 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from __future__ import annotations

from tests import get_ct_client


class TestStatus:
    @classmethod
    def setup_class(cls):
        cls.ct = get_ct_client()

    def test_get(self):
        statuses = self.ct.status.get_all()
        assert statuses
        assert self.ct.status.get(statuses[0].id)