This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
55 changed files
with
2,412 additions
and
2,421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{rst,ini}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{yml,html,xml,xsl,json}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Issue report | ||
about: Create a report to help us improve | ||
--- | ||
|
||
Short summary. | ||
|
||
## Expected behavior | ||
|
||
What you expected. | ||
|
||
## Actual behavior | ||
|
||
What happened instead. | ||
|
||
|
||
## Reproduction Steps | ||
|
||
How to reproduce this issue. | ||
|
||
```python | ||
|
||
``` | ||
|
||
### Versions | ||
|
||
Python: | ||
Django: | ||
Model Mommy: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
repos: | ||
- repo: git@github.com:pre-commit/pre-commit-hooks | ||
rev: v2.1.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.7.6 | ||
hooks: | ||
- id: flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,34 @@ | ||
sudo: true | ||
language: python | ||
dist: trusty | ||
dist: xenial | ||
branches: | ||
only: | ||
- master | ||
- development | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
env: | ||
- DJANGO=django18 | ||
- DJANGO=django19 | ||
- DJANGO=django110 | ||
- DJANGO=django111 | ||
- DJANGO=django20 | ||
matrix: | ||
exclude: | ||
- python: "2.7" | ||
env: DJANGO=django20 | ||
- DJANGO=django21 | ||
- DJANGO=django22 | ||
before_install: | ||
- sudo apt-get update && sudo apt-get build-dep python-imaging | ||
- sudo service postgresql restart | ||
install: | ||
- pip install tox | ||
- pip install tox | ||
addons: | ||
postgresql: "9.6" | ||
apt: | ||
packages: | ||
- postgresql-9.6-postgis-2.3 | ||
- postgresql-9.6-postgis-2.4 | ||
services: | ||
- postgresql | ||
before_script: | ||
- psql -U postgres -c "create extension postgis" | ||
- psql -U postgres -c "create extension hstore" | ||
- psql -U postgres template1 -c "create extension citext" | ||
- psql -c 'create database model_mommy;' -U postgres | ||
- psql -c 'create database model_mommy_test;' -U postgres | ||
- psql template1 -c "create extension hstore;" | ||
- psql template1 -c "create extension postgis;" | ||
- psql template1 -c "create extension citext;" | ||
script: | ||
- TOX_TEST_PASSENV="TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH" tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO-{postgresql} | ||
- TOX_TEST_PASSENV="TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH" tox -e py${TRAVIS_PYTHON_VERSION//[.]/}-$DJANGO-{sqlite} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
-r requirements.txt | ||
mock>=1.0.1 | ||
pillow | ||
pre-commit | ||
pytest | ||
pytest-django | ||
sphinx | ||
django-test-without-migrations==0.6 | ||
tox | ||
wheel | ||
tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Install Instructions | ||
==================== | ||
|
||
Model-mommy offers you a smart way to create fixtures for testing in Django. | ||
With a simple and powerful API you can create many objects with a single line of code. | ||
|
||
Compatibility | ||
============= | ||
|
||
model_mommy supports Django >= 1.11 and Python 3 | ||
|
||
Install | ||
======= | ||
|
||
Run the command above :: | ||
|
||
pip install model_mommy | ||
|
||
Inspiration | ||
=========== | ||
|
||
*Model-mommy* was inspired by many great open source software like ruby's ObjectDaddy and FactoryGirl. |
Oops, something went wrong.