pytest-django Questions
1
Solved
I'm using Django (1.9.6), pytest (2.9.2) and pytest-django (2.9.1)
I have a data migration that looks like this:
# -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-06-07 09:56
from __fut...
Nightwear asked 8/6, 2016 at 8:32
1
Solved
In test1.py I have below code
@pytest.fixture(scope="session")
def moduleSetup(request):
module_setup = Module_Setup()
request.addfinalizer(module_setup.teardown())
return module_setup
def tes...
Cytotaxonomy asked 3/5, 2016 at 16:28
1
I am getting started with pytest. I have configured pytest, anyway I couldn't found a resource on Django specific testing with pytest. How do I test a model with pytest_django?
I have already ask...
Sumerian asked 6/4, 2016 at 9:14
1
Solved
I have the following set up on Ubuntu 14.04:
python 2.7.6
django 1.7 [though I reproduced the same behaviour with
django 1.9 too]
pytest-django 2.8.0 [also tested with 2.9.1]
pytest 2.7.2 [also t...
Salicylate asked 4/12, 2015 at 13:25
1
Solved
I just ran py.test on my code and got the following output:
================== 6 passed, 2 pytest-warnings in 40.79 seconds =======================
However, I cannot see what py.test would like ...
Sheritasherj asked 27/10, 2015 at 8:53
2
Solved
I'm running some tests for Django, and some other tests for the website using Selenium.
My choice of Testing framework is amazing Pytest.
for testing Django I've currently installed pytest-django...
Barkley asked 23/11, 2012 at 15:18
© 2022 - 2024 — McMap. All rights reserved.