Skip to content

Instantly share code, notes, and snippets.

@tadeboro
Created March 3, 2020 07:18
Show Gist options
  • Save tadeboro/afdd69f64cb179946c246c886dcc10e8 to your computer and use it in GitHub Desktop.
Save tadeboro/afdd69f64cb179946c246c886dcc10e8 to your computer and use it in GitHub Desktop.
$ ansible-test units tests/unit/test_x.py
...
========================================== FAILURES ===========================================
________________________________________ test_my_stuff ________________________________________
[gw0] linux -- Python 3.7.6 /tmp/python-8s1dwmns-ansible/python
def test_my_stuff():
> assert dict(a=3) == dict(b=2)
E AssertionError
tests/unit/test_x.py:2: AssertionError
$ pytest tests/unit/test_x.py
...
========================================== FAILURES ===========================================
________________________________________ test_my_stuff ________________________________________
def test_my_stuff():
> assert dict(a=3) == dict(b=2)
E AssertionError: assert {'a': 3} == {'b': 2}
E Left contains 1 more item:
E {'a': 3}
E Right contains 1 more item:
E {'b': 2}
E Use -v to get the full diff
tests/unit/test_x.py:2: AssertionError
def test_my_stuff():
assert dict(a=3) == dict(b=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment