veekun_pokedex/pokedex
Andrew Ekstedt 0094e9584c Modernize our use of py.test
This commit updates the tests to take advantage of some of py.test's
newer features.  Requires py.test 2.3 or newer.  Tested with 2.3.0 and
2.5.2.

Tests which were parametrized now use py.test's built-in
parametrization[1].

The session and lookup objects are now implemented as fixtures[2].
The media root is a fixture as well.  Fixtures are automatically passed
to any function that expects them.

Since the session is now created in one place, it is now possible to
provide an engine URI on the command line when running py.test.  Ditto
for the index directory.  (But the environment variables still work of
course.)

Slow tests are now marked as such and not run unless the --all option is
given.

A couple media tests are marked as xfail (expected to fail) because they
are broken.

[1]: http://pytest.org/latest/parametrize.html
[2]: http://pytest.org/latest/fixture.html
2014-07-06 21:45:05 -07:00
..
data/csv Fix natures.game_index 2014-07-03 17:25:26 -07:00
db Tweak Pokemon width/height docstrings 2014-07-06 12:17:11 -07:00
doc Er, fix tabledoc 2014-07-06 12:17:02 -07:00
struct Move util.py to compatibility.py 2011-04-17 22:30:37 -07:00
tests Modernize our use of py.test 2014-07-06 21:45:05 -07:00
util Fix test_media.py. 2012-03-16 12:37:47 -07:00
__init__.py Speed up import pokedex.db slightly. 2011-04-03 03:13:07 -07:00
__main__.py Make the library work with python -m. 2013-08-09 13:00:37 -07:00
compatibility.py Move util.py to compatibility.py 2011-04-17 22:30:37 -07:00
defaults.py Speed up import pokedex.db slightly. 2011-04-03 03:13:07 -07:00
formulae.py Give calculated_stat and calculated_hp the same signature. 2011-03-10 22:12:03 -08:00
lookup.py Remove an unused regexp 2014-07-04 12:48:19 -07:00
main.py Dump translations for official languages by default. 2014-06-01 19:44:32 -04:00
roomaji.py Add Czech romanization 2011-03-29 17:46:41 +03:00