This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use Node.js 18 as the base image | |
FROM node:18-alpine AS build | |
# Set working directory | |
WORKDIR /app | |
# Install Yarn | |
RUN apk add --no-cache yarn | |
# Copy package.json and yarn.lock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pytest | |
from api import create_app, db | |
@pytest.fixture | |
def app(): | |
flask_app = create_app() | |
flask_app.app_context().push() | |
yield flask_app | |