diff options
author | gabrielgio <gabriel.giovanini@pm.me> | 2021-07-18 20:32:13 +0200 |
---|---|---|
committer | gabrielgio <gabriel.giovanini@pm.me> | 2021-07-18 20:32:13 +0200 |
commit | cd63440c280dcba5d02fee0f174464581f6c7fb9 (patch) | |
tree | 549496944df5da76e665d28c24217e225c115402 /main.py | |
parent | 1f3e0496079ec2e57842b3abb7aea1630bf47f9e (diff) | |
download | reddit-nextcloud-importer-cd63440c280dcba5d02fee0f174464581f6c7fb9.tar.gz reddit-nextcloud-importer-cd63440c280dcba5d02fee0f174464581f6c7fb9.tar.bz2 reddit-nextcloud-importer-cd63440c280dcba5d02fee0f174464581f6c7fb9.zip |
ref: Move to ptest-cov
Instead of using `coverage` which is not supported in the gitlab ce I'll
be using `pytest-cov` to report a proper coverage in the job panel.
Reference:
https://docs.gitlab.com/ee/ci/pipelines/settings.html#test-coverage-parsing
https://www.cypress.io/blog/2019/10/22/show-code-coverage-on-gitlab-ci/
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2,13 +2,12 @@ import argparse import os import praw -from time import sleep from nextcloud import NextCloud from praw.models.util import stream_generator -from downloader import Downloader -from uploader import create_folders, upload_file +from importer.downloader import Downloader +from importer.uploader import upload_file, create_folders parser = argparse.ArgumentParser(description="Monitor saved") parser.add_argument('-c', '--client-id', |