generated from Luis/nextjs-python-web-template
Fixed testing issue. Improved README
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user