aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml12
-rw-r--r--main.py5
2 files changed, 3 insertions, 14 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a951333..c2c8eb4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,18 +38,8 @@ test:
stage: test
script:
- pip install -r dev-requirements.txt
- - pytest -n 4 --junitxml=report.xml
+ - pytest -n 4 --junitxml=report.xml --cov=importer
artifacts:
reports:
junit: report.xml
-coverage:
- image: python:3-alpine
- stage: test
- script:
- - pip install -r dev-requirements.txt
- - coverage run -m pytest
- - coverage xml -o cobertura.xml
- artifacts:
- reports:
- cobertura: cobertura.xml
diff --git a/main.py b/main.py
index 266bb53..575a7ef 100644
--- a/main.py
+++ b/main.py
@@ -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',