Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
python-pytest-django
python-pytest-django.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pytest-django.spec of Package python-pytest-django
# # spec file for package python-pytest-django # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-django Version: 3.4.8 Release: 0 Summary: A Django plugin for py.test License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/pytest-dev/pytest-django Source: https://files.pythonhosted.org/packages/source/p/pytest-django/pytest-django-%{version}.tar.gz BuildRequires: %{python_module Django} BuildRequires: %{python_module pytest >= 3.6} BuildRequires: %{python_module setuptools_scm >= 1.11.1} BuildRequires: %{python_module setuptools} BuildRequires: fdupes # Used for tests BuildRequires: %{python_module six} BuildRequires: python-rpm-macros BuildRequires: python2-pathlib2 BuildRequires: sqlite3 Requires: python-Django Requires: python-pytest >= 3.6 BuildArch: noarch %ifpython2 Requires: python-pathlib2 %endif %python_subpackages %description pytest-django allows testing Django projects/applications with the pytest testing tool. Running the test suite with pytest-django allows tapping into the features that are already present in pytest: * Manage test dependencies with pytest fixtures. * Less boilerplate tests: no need to import unittest and creating a subclass with methods. Tests can be written as regular functions. * Database re-use: no need to re-create the test database for every test run. * Run tests in multiple processes for increased speed (with the pytest-xdist plugin). * Make use of other pytest plugins. * Works with both worlds: Existing unittest-style TestCase's still work without any modifications. %prep %setup -q -n pytest-django-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check # memory operations failed in OBS not localy, thus skip them export DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite %python_expand PYTHONPATH=$(pwd) py.test-%{$python_bin_suffix} tests/ -k 'not test_sqlite_in_memory_used' %files %{python_files} %license LICENSE %doc AUTHORS README.rst docs/*.rst %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor