File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ source "${ROOT_DIR}/scripts/helpers"
66header " Running tests"
77
88if [ -n " $( check_if_installed docker) " ]; then
9- docker run -v " ${PWD} :/code" sergioteula/pytools bash -c \
9+ docker run -v " ${PWD} :/code" -u " $( id -u ) : $( id -g ) " sergioteula/pytools bash -c \
1010 " coverage run -m unittest && coverage xml && coverage html && echo && coverage report"
1111elif [ -n " $( check_if_installed coverage) " ]; then
1212 coverage run -m unittest && coverage xml && coverage html && echo && coverage report
Original file line number Diff line number Diff line change 1+ import unittest
2+
3+ from amazon_paapi .errors import AmazonError
4+
5+
6+ class TestAmazonError (unittest .TestCase ):
7+ def test_amazon_error_str (self ):
8+ error = AmazonError ("Test reason" )
9+
10+ self .assertEqual ("Test reason" , str (error ))
You can’t perform that action at this time.
0 commit comments