From dfce90df8b5e8524a842d16bb590aaee80d91e09 Mon Sep 17 00:00:00 2001 From: Ajit Padhi Date: Fri, 15 Nov 2024 11:48:46 +0530 Subject: [PATCH 1/3] remved unwanted test --- ClientAdvisor/App/test_app.py | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 ClientAdvisor/App/test_app.py diff --git a/ClientAdvisor/App/test_app.py b/ClientAdvisor/App/test_app.py deleted file mode 100644 index f50d3fc5..00000000 --- a/ClientAdvisor/App/test_app.py +++ /dev/null @@ -1,6 +0,0 @@ -from app import format_as_ndjson - - -def test_format_as_ndjson(): - obj = {"message": "I ❤️ 🐍 \n and escaped newlines"} - assert format_as_ndjson(obj) == '{"message": "I ❤️ 🐍 \\n and escaped newlines"}\n' From 5e1b567215b2365bec36cd38d47e5a470eb1f94a Mon Sep 17 00:00:00 2001 From: Ajit Padhi Date: Fri, 15 Nov 2024 18:46:57 +0530 Subject: [PATCH 2/3] unit test issue fix --- ClientAdvisor/App/app.py | 1 - ClientAdvisor/App/requirements.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ClientAdvisor/App/app.py b/ClientAdvisor/App/app.py index a50661bf..ba1bc949 100644 --- a/ClientAdvisor/App/app.py +++ b/ClientAdvisor/App/app.py @@ -55,7 +55,6 @@ def create_app(): app.config["TEMPLATES_AUTO_RELOAD"] = True # app.secret_key = secrets.token_hex(16) # app.session_interface = SecureCookieSessionInterface() - # print(app.secret_key) return app diff --git a/ClientAdvisor/App/requirements.txt b/ClientAdvisor/App/requirements.txt index ce2e28e6..3af0404e 100644 --- a/ClientAdvisor/App/requirements.txt +++ b/ClientAdvisor/App/requirements.txt @@ -5,7 +5,7 @@ azure-search-documents==11.4.0b6 azure-storage-blob==12.17.0 python-dotenv==1.0.0 azure-cosmos==4.5.0 -quart==0.19.4 +quart==0.19.9 uvicorn==0.24.0 aiohttp==3.9.2 gunicorn==20.1.0 From d98f6d1a0496f1521c293fa85f4abdfaaddeeef6 Mon Sep 17 00:00:00 2001 From: Ajit Padhi Date: Fri, 15 Nov 2024 18:49:10 +0530 Subject: [PATCH 3/3] unit test issue fix --- ClientAdvisor/App/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ClientAdvisor/App/app.py b/ClientAdvisor/App/app.py index ba1bc949..e8221243 100644 --- a/ClientAdvisor/App/app.py +++ b/ClientAdvisor/App/app.py @@ -1592,6 +1592,7 @@ def get_users(): """select DATEDIFF(d,CAST(max(StartTime) AS Date),CAST(GETDATE() AS Date)) + 3 as ndays from ClientMeetings""" ) rows = cursor.fetchall() + ndays = 0 for row in rows: ndays = row["ndays"] sql_stmt1 = f"UPDATE ClientMeetings SET StartTime = dateadd(day,{ndays},StartTime), EndTime = dateadd(day,{ndays},EndTime)"