Commit Graph

8 Commits (e695abf9535d03db393b155faf5bdaff9b8dfba5)

Author SHA1 Message Date
Andrey Antukh 3061425a67 Improvements and fixes on tests. 2014-09-16 10:48:43 +02:00
Andrey Antukh 01d524adb8 Setup django on start testrunner. 2014-09-16 10:48:43 +02:00
Anler Hp e98d666a40 Removing unnecessary setup of test database
We are already using pg arrays so the unpickle function in sql/tags.sql
is not needed, at least by the moment. I'm removing it because it was
entering in an infinite loop when creating the test database.
2014-06-23 12:26:17 +02:00
David Barragán Merino 767024d0d5 Add more licenses agreements to the tests module 2014-06-19 22:46:31 +02:00
Andrey Antukh cefbcda91d Load tags sql on connection is created on tests. 2014-05-28 12:51:44 +02:00
Anler Hp bc70ab8cc9 Moving fixture into standalone module and new module tests.utils 2014-05-27 13:28:46 +02:00
Anler Hp ac49a76146 Automatically skip slow tests
You can mark a test as slow using:

    @pytest.mark.slow
    def test_something():
        ...

Use the option "--runslow" to tell the test runner to also include slow
tests:
        py.test --runslow ...
2014-05-22 18:34:03 +02:00
Anler Hp e1fdc36301 Pytest mutable object fixture.
Usage:
        def test_something(object):
            # mutate object as needed
2014-05-22 18:34:03 +02:00