Skip to content

Commit

Permalink
Prepare for more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ways committed Nov 19, 2024
1 parent 93641c1 commit 80b8802
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions sedr/test_schemat.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ def test_set_up_schemathesis(self):
schemat.schema = schemat.set_up_schemathesis(util.args)
self.assertTrue(schemat.schema)

# def test_edr_landingpage(self):
# """Test test_edr_landingpage."""
# __version__ = "testversion"
def test_edr_landingpage(self):
"""Test test_edr_landingpage with a local json."""
__version__ = "testversion"

# util.args = util.parse_args([], __version__)
# util.args.openapi_version == "3.1"
util.args = util.parse_args([], __version__)
util.args.openapi_version == "3.1"

# util.logger = util.set_up_logging(
# args=util.args, logfile=util.args.log_file, version=__version__
# )
# import schemat
util.logger = util.set_up_logging(
args=util.args, logfile=util.args.log_file, version=__version__
)
import schemathesis
import schemat

# schemat.schema = schemat.set_up_schemathesis(util.args)
schemat.schema = schemathesis.from_path(
path="testdata/edrisobaric_openapi.json"
)

# TODO: Need to set up a case to run this
# t = schemat.test_edr_landingpage()
# self.assertTrue(t)
# TODO
# t = schemat.test_edr_landingpage(schemat.schema)
# self.assertTrue(t)

0 comments on commit 80b8802

Please sign in to comment.