예제 #1
0
    def test_set_participate_state(self, registry, app, process_url,
                                   app_admin):
        resp = app_admin.get(process_url)
        assert resp.status_code == 200

        resp = do_transition_to(app_admin, process_url, 'announce')
        assert resp.status_code == 200

        resp = do_transition_to(app_admin, process_url, 'participate')
        assert resp.status_code == 200
예제 #2
0
    def test_set_participate_state(self, registry, process_url, app_admin):
        resp = app_admin.get(process_url)
        assert resp.status_code == 200

        resp = do_transition_to(app_admin,
                                process_url,
                                'announce')
        assert resp.status_code == 200

        resp = do_transition_to(app_admin,
                                process_url,
                                'participate')
        assert resp.status_code == 200
예제 #3
0
 def test_set_closed_state(self, registry, app, process_url, app_admin):
     resp = do_transition_to(app_admin,
                             process_url,
                             'closed')
     assert resp.status_code == 200
예제 #4
0
 def test_change_state_to_frozen(self, registry, app_initiator):
     resp = do_transition_to(app_initiator, '/bplan', 'evaluate')
     assert resp.status_code == 200
예제 #5
0
 def test_change_state_to_participate(self, registry, app_initiator):
     resp = do_transition_to(app_initiator, '/bplan', 'participate')
     assert resp.status_code == 200
예제 #6
0
 def test_change_state_to_announce(self, app_initiator):
     resp = do_transition_to(app_initiator, '/', 'announce')
     assert resp.status_code == 200
예제 #7
0
 def test_change_state_to_evaluate(self, app_initiator):
     resp = do_transition_to(app_initiator, '/kiezkasse', 'evaluate')
     assert resp.status_code == 200
예제 #8
0
 def test_change_state_to_select(self, app_initiator):
     resp = do_transition_to(app_initiator, '/s1', 'select')
     assert resp.status_code == 200
예제 #9
0
 def test_change_state_to_select(self, app_initiator):
     resp = do_transition_to(app_initiator, '/s1', 'select')
     assert resp.status_code == 200
예제 #10
0
 def test_change_state_to_result(self, app_initiator):
     resp = do_transition_to(app_initiator, '/digital_leben', 'result')
     assert resp.status_code == 200
예제 #11
0
 def test_change_state_to_participate(self, app_initiator):
     resp = do_transition_to(app_initiator, '/digital_leben', 'participate')
     assert resp.status_code == 200
예제 #12
0
 def test_change_state_to_closed(self, registry, app_initiator):
     resp = do_transition_to(app_initiator, '/kiezkasse', 'closed')
     assert resp.status_code == 200
예제 #13
0
 def test_change_state_to_announce(self,
                                   registry,
                                   app_initiator,
                                   app_god):
     resp = do_transition_to(app_initiator, '/kiezkasse', 'announce')
     assert resp.status_code == 200
예제 #14
0
 def test_set_result_state(self, registry, process_url, app_admin):
     resp = do_transition_to(app_admin, process_url, 'result')
     assert resp.status_code == 200
예제 #15
0
 def test_change_state_to_closed(self, app_initiator):
     resp = do_transition_to(app_initiator, '/kiezkasse', 'closed')
     assert resp.status_code == 200
예제 #16
0
 def test_change_state_to_announce(self, app_initiator):
     resp = do_transition_to(app_initiator, '/', 'announce')
     assert resp.status_code == 200
예제 #17
0
 def test_change_state_to_participate(self, app_initiator):
     resp = do_transition_to(app_initiator, '/', 'participate')
     assert resp.status_code == 200
예제 #18
0
 def test_change_state_to_result_again(self, app_initiator):
     resp = do_transition_to(app_initiator, '/s1', 'result')
     assert resp.status_code == 200
예제 #19
0
 def test_change_state_to_frozen(self, app_initiator):
     resp = do_transition_to(app_initiator, '/', 'evaluate')
     assert resp.status_code == 200
예제 #20
0
 def test_change_state_to_result_again(self, app_initiator):
     resp = do_transition_to(app_initiator, '/s1', 'result')
     assert resp.status_code == 200
예제 #21
0
 def test_change_state_to_result(self, app_initiator, registry):
     resp = do_transition_to(app_initiator, '/debate', 'result')
     assert resp.status_code == 200