Skip to content

Instantly share code, notes, and snippets.

@guissalustiano
Last active November 21, 2021 04:52
Show Gist options
  • Select an option

  • Save guissalustiano/f778185ccb79a0ab78b2ba935ca2465b to your computer and use it in GitHub Desktop.

Select an option

Save guissalustiano/f778185ccb79a0ab78b2ba935ca2465b to your computer and use it in GitHub Desktop.
$ pytest
========================= test session starts =========================
platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.1
rootdir: /home/guiss/Projetos/Turing/Talks/Logs
collected 4 items
util_test.py ...F [100%]
============================== FAILURES ===============================
__________________ test_flatten_dict_nivel_separador __________________
def test_flatten_dict_nivel_separador():
> assert flatten_dict({'a': {'b': 1}}, '_') == {'a_b': 1}
E AssertionError: assert {'a.b': 1} == {'a_b': 1}
E Left contains 1 more item:
E {'a.b': 1}
E Right contains 1 more item:
E {'a_b': 1}
E Use -v to get the full diff
util_test.py:18: AssertionError
====================== short test summary info ========================
FAILED util_test.py::test_flatten_dict_nivel_separador - AssertionError: assert {...
===================== 1 failed, 3 passed in 0.05s =====================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment