New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unit test for download module #35
Conversation
rebaseコマンド叩きましたか? Files Changedが見えづらいので、最新のmainからrebasdを叩いてください |
413aae9
to
c780831
Compare
失礼いたしました。 リベースいたしましたので、ご確認よろしくお願いします。 |
@To-Ki-O すいませんが、あと最終的な実行手順ももらえますか? |
承知しました。
この手順でテストを実行できます。 |
上記の手順は詳細ドキュメントに追加しておきましょうか。 |
こちらのコマンドを実行すると以下のように no tests run になりますが何かわかりますでしょうか?
|
#35 (comment) |
Slackのコードをそのまま掲載してしまい、すいませんでした。 手順通りであれば、 CKAN_SQLALCHEMY_URL= CKAN_DATASTORE_READ_URL= CKAN_DATASTORE_WRITE_URL= pytest -s --ckan-ini=config/test.ini --cov=ckanext.feedback --cov-branch --disable-warnings ./ ※ #35 (comment)で指摘いただいたコードと同様になります |
0cb5f27
to
c533eb4
Compare
* initial commit to do test * modify test.ini and test_download.py in models * move test.ini from root to ckanext/feedback/tests * delete sections that is not needed * delete test.init and modify config/test.ini * add DownloadSummary model test * modify indents in download model test * add download controller test * add test about download service * delete test about download model * commit to checkout * change to use the mock of database access * commit to checkout * commit to checkout * commit to checkout * rewrite the test to use test DB * run isort, black, pflake8 * rename views to services * delete DownloadController.increment_resource_download * delete app_context * sepalate the test of extended_download * modify static initializaer to setup_class * add setup function and move resource and app into it * change setup to setup_method
フィードバック機能のダウンロードモジュールに関する単体テストを作成しました。
よろしくお願いします。