Selaa lähdekoodia

get back pytest's pretty assertion failures, fixes #1938

Thomas Waldmann 8 vuotta sitten
vanhempi
sitoutus
c6017abfb7
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      conftest.py

+ 2 - 0
conftest.py

@@ -4,6 +4,8 @@ import sys
 
 
 import pytest
 import pytest
 
 
+# needed to get pretty assertion failures in unit tests:
+pytest.register_assert_rewrite('borg')
 
 
 # This is a hack to fix path problems because "borg" (the package) is in the source root.
 # This is a hack to fix path problems because "borg" (the package) is in the source root.
 # When importing the conftest an "import borg" can incorrectly import the borg from the
 # When importing the conftest an "import borg" can incorrectly import the borg from the