fspv / leetcode-anki

Anki cards generator for Leetcode
MIT License
308 stars 43 forks source link

Tests are failing #30

Closed fspv closed 2 years ago

fspv commented 2 years ago
    @pytest.mark.asyncio
    @mock.patch(
        "leetcode_anki.helpers.leetcode.LeetcodeData._get_problems_data",
        mock.Mock(return_value=[QUESTION_DETAIL]),
    )
    async def test_tags(self) -> None:
        self._leetcode_data._cache["test"] = QUESTION_DETAIL

>       assert (await self._leetcode_data.tags("test")) == ["test-tag"]
E       AssertionError: assert ['test-tag', 'Hard'] == ['test-tag']
E         Left contains one more item: 'Hard'
E         Use -v to get more diff

test/helpers/test_leetcode.py:248: AssertionError

This is due to logic change