1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-29 02:22:15 +01:00

Run tests via calling 'setup.py test'

This commit is contained in:
2022-02-17 13:28:47 +01:00
parent cb4b2389a6
commit 25a6e04e2b
19 changed files with 31 additions and 81 deletions

View File

@@ -2,7 +2,7 @@ import osc.core
import osc.oscerr
import os
import sys
from common import GET, PUT, POST, DELETE, OscTestCase
from .common import GET, PUT, POST, DELETE, OscTestCase
try:
# Works up to Python 3.8, needed for Python < 3.3 (inc 2.7)
from xml.etree import cElementTree as ET
@@ -16,7 +16,7 @@ except ImportError:
#python 2.x
from urllib2 import HTTPError
FIXTURES_DIR = os.path.join(os.getcwd(), 'commit_fixtures')
FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'commit_fixtures')
def suite():
import unittest