Skip to content

thinkAmi-sandbox/Django_pytest_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django_pytest_sample

セットアップ

# 任意のGit用ディレクトリへ移動
>cd path\to\dir

# GitHubからカレントディレクトリへclone
path\to\dir>git clone https://github.com/thinkAmi-sandbox/Django_pytest_sample.git

# virtualenv環境の作成とactivate
# *Python3.5は、`c:\python35-32\`の下にインストール
path\to\dir>virtualenv -p c:\python35-32\python.exe env
path\to\dir>env\Scripts\activate

# requirements.txtよりインストール
(env)path\to\dir>pip install -r requirements.txt

# 実行
(env)path\to\dir>py.test

 

テスト環境

  • Windows10
  • Python 3.5.1
  • Django 1.9.5
  • pytest 2.9.1
  • pytest-django 2.9.1

 

関係するブログ

Djangoアプリをpytest-djangoを使ってテストしてみた - メモ的な思考的な

About

sample: Django test with pytest (pytest-django)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published