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")))
Example #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")))
 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")))
Example #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}")))
Example #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")))
Example #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")))
 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}")))