Rename Exporter to TestExporter to make it more obvious

This commit is contained in:
Stephan Kulow 2022-11-02 07:39:04 +01:00
parent a8dfd80fdd
commit 9de0d6e6c5
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import sys
import osc.core import osc.core
from lib.exporter import Exporter from lib.test_exporter import TestExporter
from lib.importer import Importer from lib.importer import Importer
URL_OBS = "https://api.opensuse.org" URL_OBS = "https://api.opensuse.org"
@ -86,7 +86,7 @@ def main():
requests_log.propagate = True requests_log.propagate = True
if args.export: if args.export:
Exporter(args.package).run() TestExporter(args.package).run()
return return
if not args.repodir: if not args.repodir:

View File

@ -6,7 +6,8 @@ from lib.db import DB
from lib.db_revision import DBRevision from lib.db_revision import DBRevision
class Exporter: class TestExporter:
""""Helper class to export data from production DB for tests"""
def __init__(self, package): def __init__(self, package):
self.package = package self.package = package