[python-oca] create new repo
This commit is contained in:
commit
b202172a30
78 changed files with 4703 additions and 0 deletions
25
oca/tests/integration_test_client.py
Normal file
25
oca/tests/integration_test_client.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# vim: set fileencoding=utf8
|
||||
# encoding:utf8
|
||||
#
|
||||
# Author: Matthias Schmitz <matthias@sigxcpu.org>
|
||||
|
||||
import os
|
||||
import unittest
|
||||
|
||||
import oca
|
||||
|
||||
|
||||
@unittest.skipUnless(os.environ.get('OCA_INT_TESTS', False),
|
||||
"Skipping integration tests")
|
||||
class IntTestClient(unittest.TestCase):
|
||||
def setUp(self):
|
||||
try:
|
||||
del os.environ["ONE_AUTH"]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
self.c = oca.Client(os.environ['OCA_INT_TESTS_ONE_AUTH'],
|
||||
os.environ['OCA_INT_TESTS_ONE_XMLRPC'])
|
||||
|
||||
def test_connection(self):
|
||||
self.assertIn(os.environ['OCA_INT_TESTS'], self.c.version())
|
||||
Loading…
Add table
Add a link
Reference in a new issue