File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change 1+ import sys
2+ import os
3+
4+ current_dir = os .path .dirname (os .path .abspath (__file__ ))
5+
6+ sys .path .insert (0 , os .path .join (current_dir , '..' ))
7+
18from main import app
29from fastapi import status
310from fastapi .testclient import TestClient
@@ -1430,13 +1437,13 @@ def test_modified_internal_rate_of_return():
14301437 )
14311438 assert response .status_code == status .HTTP_200_OK
14321439
1433- assert response .json () == {
1434- "Tag" : "Modified internal rate" ,
1435- "Ending cash flow" : 500000 ,
1436- "Initial cash flow" : - 300000 ,
1437- "Number of periods" : 5 ,
1438- "Modified internal rate of return" : "12.04%" ,
1439- }
1440+ assert response .json () == {
1441+ "Tag" : "Modified internal rate" ,
1442+ "Ending cash flow" : 500000 ,
1443+ "Initial cash flow" : - 300000 ,
1444+ "Number of periods" : 5 ,
1445+ "Modified internal rate of return" : "12.04%" ,
1446+ }
14401447
14411448
14421449
You can’t perform that action at this time.
0 commit comments