예제 #1
0
 def test_upload_for_swagger_path(self):
     with self.graph.app.test_request_context():
         path = build_path(Operation.UploadFor, self.relation_ns)
     assert_that(path, is_(equal_to("/api/person/{person_id}/file")))
예제 #2
0
    def test_swagger_path(self):
        with self.graph.app.test_request_context():
            path = build_path(Operation.CreateCollection, self.ns)

        assert_that(path, is_(equal_to("/api/foo")))
예제 #3
0
 def test_upload_swagger_path(self):
     with self.graph.app.test_request_context():
         path = build_path(Operation.Upload, self.ns)
     assert_that(path, is_(equal_to("/api/file")))
예제 #4
0
 def test_swagger_path(self):
     with self.graph.app.test_request_context():
         path = build_path(Operation.Alias, self.ns)
     assert_that(path, is_(equal_to("/api/person/{person_name}")))
예제 #5
0
 def test_upload_for_swagger_path(self):
     with self.graph.app.test_request_context():
         path = build_path(Operation.UploadFor, self.relation_ns)
     assert_that(path, is_(equal_to("/api/person/{person_id}/file")))
예제 #6
0
 def test_upload_swagger_path(self):
     with self.graph.app.test_request_context():
         path = build_path(Operation.Upload, self.ns)
     assert_that(path, is_(equal_to("/api/file")))
    def test_swagger_path(self):
        with self.graph.app.test_request_context():
            path = build_path(Operation.CreateCollection, self.ns)

        assert_that(path, is_(equal_to("/api/foo")))
예제 #8
0
 def test_swagger_path(self):
     with self.graph.app.test_request_context():
         path = build_path(Operation.Alias, self.ns)
     assert_that(path, is_(equal_to("/api/person/{person_name}")))