forked from importers/git-importer
Rename Exporter to TestExporter to make it more obvious
This commit is contained in:
parent
a8dfd80fdd
commit
9de0d6e6c5
@ -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:
|
||||||
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user