Skip to content

Commit

Permalink
+fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vantage-ola committed Oct 11, 2024
1 parent 7d9839b commit feca1d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_correct_spelling(text, expected):


@pytest.fixture
def resume_data_fixture():
def unique_resume_data_fixture():
'''
Setup temporary file to test load_data
'''
Expand Down Expand Up @@ -198,11 +198,11 @@ def resume_data_fixture():
yield test_file_path, test_data


def test_load_data(temp_resume_data_fixture):
def test_load_data(unique_resume_data_fixture):
'''
Test the load_data util function
'''
test_file_path, test_data = temp_resume_data_fixture
test_file_path, test_data = unique_resume_data_fixture

# Test if the load_data function successfully loads the data
data = load_data(test_file_path)
Expand All @@ -225,7 +225,7 @@ def test_load_data(temp_resume_data_fixture):
os.remove(invalid_json_file)


# testcases for ai suggested improved descriptions
# Test cases for AI-suggested improved descriptions
@patch('app.get_suggestion')
def test_get_description_suggestion(mock_get_suggestion):
'''
Expand Down

0 comments on commit feca1d4

Please sign in to comment.