Skip to content

Commit

Permalink
Unit Test Added
Browse files Browse the repository at this point in the history
  • Loading branch information
Lagstill committed Jun 5, 2023
1 parent 967957a commit 30fbed7
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test_app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from flask import Flask, request, render_template
from src.pipeline.predict_pipeline import CustomData, PredictPipeline
import pytest

from app import app

@pytest.fixture
def client():
with app.test_client() as client:
yield client

def test_index(client):
response = client.get('/')
assert response.status_code == 200
assert b'Hello, World!' in response.data

0 comments on commit 30fbed7

Please sign in to comment.