Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/image store #3

Closed
wants to merge 31 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
36e21e5
feature: ADD test scenario
robert-min Jan 22, 2024
9c86ae7
feature: ADD test scenario
robert-min Jan 22, 2024
1bffd41
test: Add test to insert data with mongodb
robert-min Jan 22, 2024
86618bc
test: ADD test fail connection to insert image with mongodb
robert-min Jan 22, 2024
a9dfb7f
feature: ADD Mongodb session manager
robert-min Jan 22, 2024
3e5e568
feature: ADD code coverage
robert-min Jan 22, 2024
c1bfea6
feature: ADD repository to insert images with mongodb
robert-min Jan 22, 2024
5eaa43e
feature: ADD error code enum class
robert-min Jan 22, 2024
e35cdd8
feature: ADD service layater to insert image
robert-min Jan 22, 2024
12dfad5
feature: ADD libs/util & apps/repository testcode:
robert-min Jan 23, 2024
3f90103
test: ADD controller test scenario
robert-min Jan 23, 2024
14f0ea7
test: ADD controller test code
robert-min Jan 23, 2024
6f6f5ea
feature: ADD apps/controller layer make_generated_content api
robert-min Jan 23, 2024
78374de
fix: ADD async to I/O process
robert-min Jan 24, 2024
b84278e
fix: ADD mongodb client dependency.
robert-min Jan 24, 2024
b1990d0
fix: DELETE OSError and CHECK code coverage
robert-min Jan 24, 2024
7c6da95
feature: ADD codecov workflow
robert-min Jan 24, 2024
0c19c53
fix: codecov workflows & requirements.txt
robert-min Jan 24, 2024
83e7de4
fix: codecov workflows & requirements.txt
robert-min Jan 24, 2024
bad8cb4
fix: conflic main branch
robert-min Jan 24, 2024
955b24f
fix: conflict main branch
robert-min Jan 24, 2024
9b5ce30
fix: coverage workflow python-version
robert-min Jan 24, 2024
349002c
fix: coverage workflow .coverage file path
robert-min Jan 24, 2024
4daf30f
fix: coverage workflow to test workflow with ENV
robert-min Jan 24, 2024
24c524d
feature: ADD test_img for testing
robert-min Jan 24, 2024
7b1f6d1
fix: coverage workflow env
robert-min Jan 24, 2024
3e49dbd
test: github env setting check
robert-min Jan 24, 2024
7110699
fix: coverage workflow create .env File
robert-min Jan 24, 2024
f88d5c6
fix: coverage workflow create .env File
robert-min Jan 24, 2024
7d6cc4b
fix: coverage workflow create .env File
robert-min Jan 24, 2024
d63e586
fix: coverage workflow create .env File
robert-min Jan 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: github env setting check
robert-min committed Jan 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 3e49dbd1a72624f8f6a2ef3c35c551547bdde63f
Binary file modified .coverage
Binary file not shown.
5 changes: 4 additions & 1 deletion src/libs/db_manager.py
Original file line number Diff line number Diff line change
@@ -12,8 +12,11 @@ def __init__(
self.db = os.environ.get('DB_NAME')

def get_session(self) -> pymongo.MongoClient:
if not self.url:
raise Exception("No url")

try:
self.client = pymongo.MongoClient(self.url)
return self.client[self.db]
except Exception as e:
DBError(**DBErrorCode.DBConnectionError.value, err=e)
raise DBError(**DBErrorCode.DBConnectionError.value, err=e)