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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user