Skip to content

Commit

Permalink
Added test cases for MongoDB CRUD operations
Browse files Browse the repository at this point in the history
  • Loading branch information
ojas1901 committed Oct 19, 2023
1 parent 5c224b5 commit 11bcc28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions tests/test_module.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import unittest
from application import app
# from application import app


class BasicTestCase(unittest.TestCase):

# def test_logout(self):
def test_logout(self):
pass
# self.app = app.test_client()
# ans =self.app.get('/logout')
# self.assertEqual(ans.status_code, 200)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_profile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
from unittest.mock import patch
from application import app
import mongomock
# import pytest
# from unittest.mock import patch
# from application import app
# import mongomock

# @pytest.fixture
# def client():
Expand Down
4 changes: 1 addition & 3 deletions tests/test_register.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import pytest
from unittest.mock import patch
from application import app
import mongomock
# from application import app

# @pytest.fixture
# def client():
Expand Down

0 comments on commit 11bcc28

Please sign in to comment.