Skip to content

Commit

Permalink
coverage for web-app tests not working & removed testing from readme …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
hah8236 committed Apr 29, 2024
1 parent f45d692 commit a53ffcf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web-app/tests/test_webApp.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import coverage
import unittest
from unittest.mock import patch
from flask import Flask
from pymongo import MongoClient
from app import app, db, collection
# to test coverage, run these
# cd web-app
# docker build -t web-app .
# docker run --rm web-app sh -c "coverage run -m unittest discover tests && coverage report"

class TestWebApplication(unittest.TestCase):
def setUp(self):
Expand Down

0 comments on commit a53ffcf

Please sign in to comment.