Initial commit

This commit is contained in:
Daniil Fajnberg 2022-01-11 16:06:44 +01:00
commit 8b8b41a3ee
10 changed files with 81 additions and 0 deletions

12
.coveragerc Normal file
View File

@ -0,0 +1,12 @@
[run]
source = src/
branch = true
omit =
.venv/*
[report]
fail_under = 100
show_missing = True
skip_covered = False
omit =
tests/*

10
.gitignore vendored Normal file
View File

@ -0,0 +1,10 @@
# Python virtual environment:
/.venv/
# IDE settings:
/.idea/
/.vscode/
# Distribution / packaging:
*.egg-info/
/dist/
# Python cache:
__pycache__/

19
README.md Normal file
View File

@ -0,0 +1,19 @@
# drf-testutils
Generalized unit test base classes for Django Rest Framework (DRF) endpoints
## Usage
...
## Installation
`pip install drf-testutils`
## Dependencies
Python Version ..., OS ...
## Building from source
Run `python -m build`

3
coverage.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
coverage erase && coverage run -m unittest discover && coverage report

6
pyproject.toml Normal file
View File

@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"

0
requirements/common.txt Normal file
View File

2
requirements/dev.txt Normal file
View File

@ -0,0 +1,2 @@
-r common.txt
coverage

29
setup.cfg Normal file
View File

@ -0,0 +1,29 @@
[metadata]
name = drf-testutils
version = 0.0.1
author = Daniil
author_email = mail@placeholder123.to
description = Generalized unit test base classes for Django Rest Framework (DRF) endpoints
long_description = file: README.md
long_description_content_type = text/markdown
url = https://git.fajnberg.de/daniil/drf-testutils
project_urls =
Bug Tracker = https://git.fajnberg.de/daniil/drf-testutils/issues
classifiers =
Programming Language :: Python :: 3
Operating System :: OS Independent
[options]
package_dir =
= src
packages = find:
python_requires = >=3
install_requires =
...
[options.extras_require]
dev =
coverage
[options.packages.find]
where = src

View File

0
tests/__init__.py Normal file
View File