mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-22556, PY-23233, PY-23217: Set working directory for tests that are not in packages (expect pytest with py3):
* Useless code removed from PyQualifiedNameResolveContext * Logic extracted to PyTestRunnerUtils * Tests added
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# coding=utf-8
|
||||
def smart_func():
|
||||
return 42
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from logic import smart_func
|
||||
from tests_package.test_tools import ANSWER
|
||||
|
||||
|
||||
class TestLonely(TestCase):
|
||||
def test_test(self):
|
||||
self.assertEqual(ANSWER, smart_func())
|
||||
Vendored
python/testData/testRunner/env/createConfigurationTest/tests_package/package_test/test_in_package.py
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from logic import smart_func
|
||||
from tests_package.test_tools import ANSWER
|
||||
|
||||
|
||||
class TestLogic(TestCase):
|
||||
def test_test(self):
|
||||
self.assertEqual(ANSWER, smart_func())
|
||||
+1
@@ -0,0 +1 @@
|
||||
ANSWER = 42
|
||||
Reference in New Issue
Block a user