Commit f97b790
committed
#UNIT_TEST_BUG_FIX
Prompt Category:
Unit Testing
Prompt:
Fix the error
============================================== short test summary info ==============================================
FAILED test_extract_data.py::TestGoogleSheetExtraction::test_invalid_ratings - AssertionError: False is not true
====================================== 1 failed, 5 passed, 1 warning in 0.52s =======================================
User Observation:
python3 -m pytest test_extract_data.py -v --cov=extract_data
================================================ test session starts ================================================
platform darwin -- Python 3.9.6, pytest-8.3.5, pluggy-1.5.0 -- /Library/Developer/CommandLineTools/usr/bin/python3
cachedir: .pytest_cache
rootdir: /Users/surya.sandeep.boda/Desktop/Marscode Zero to One 3
plugins: cov-6.0.0
collected 6 items
test_extract_data.py::TestGoogleSheetExtraction::test_calculation_accuracy PASSED [ 16%]
test_extract_data.py::TestGoogleSheetExtraction::test_empty_sheet PASSED [ 33%]
test_extract_data.py::TestGoogleSheetExtraction::test_invalid_ratings PASSED [ 50%]
test_extract_data.py::TestGoogleSheetExtraction::test_missing_columns PASSED [ 66%]
test_extract_data.py::TestGoogleSheetExtraction::test_result_status_calculation PASSED [ 83%]
test_extract_data.py::TestGoogleSheetExtraction::test_successful_data_extraction PASSED [100%]
================================================= warnings summary ==================================================
test_extract_data.py:3
/Users/surya.sandeep.boda/Desktop/Marscode Zero to One 3/test_extract_data.py:3: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at pandas-dev/pandas#54466
import pandas as pd
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
---------- coverage: platform darwin, python 3.9.6-final-0 -----------
Name Stmts Miss Cover
-------------------------------------
extract_data.py 65 12 82%
-------------------------------------
TOTAL 65 12 82%
=========================================== 6 passed, 1 warning in 0.49s ============================================
Response ID:
8f1f79d4-228b-47b4-9e08-02733b470bc01 parent 75234f7 commit f97b790
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
| |||
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
| 113 | + | |
| 114 | + | |
108 | 115 | | |
109 | | - | |
110 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
111 | 124 | | |
112 | 125 | | |
113 | 126 | | |
| |||
0 commit comments