Use mock api call

This commit is contained in:
Fang-Pen Lin
2025-11-13 09:21:58 -08:00
parent 146524ac2d
commit 1b90a1dca0
4 changed files with 154 additions and 4 deletions
+4
View File
@@ -10,6 +10,8 @@ from dotenv import load_dotenv
from faker import Faker
import logging
from features.steps.utils import clear_all_nock, restore_nock
load_dotenv()
logger = logging.getLogger(__name__)
@@ -205,3 +207,5 @@ def before_all(context: Context):
def after_scenario(context: Context, scenario: typing.Any):
if hasattr(context, "web_server"):
context.web_server.shutdown_and_server_close()
clear_all_nock(context)
restore_nock(context)