Fixed testing issue. Improved README
All checks were successful
checks-impure / test (pull_request) Successful in 29s
checks / test (pull_request) Successful in 3m2s

This commit is contained in:
2023-12-09 19:10:11 +01:00
parent 4e0346d0a0
commit 0c08cde34c
3 changed files with 9 additions and 7 deletions

View File

@@ -23,9 +23,9 @@ def register_parser(parser: argparse.ArgumentParser) -> None:
"--host", type=str, default="localhost", help="Host to listen on"
)
parser.add_argument(
"--no-populate",
"--populate",
action="store_true",
help="Don't populate the database with dummy data",
help="Populate the database with dummy data",
default=False,
)
parser.add_argument(

View File

@@ -111,7 +111,7 @@ def start_server(args: argparse.Namespace) -> None:
sql_models.Base.metadata.drop_all(engine)
if args.no_populate is False:
if args.populate:
test_dir = Path(__file__).parent.parent.parent / "tests"
if not test_dir.is_dir():