Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e30dcf

Browse files
author
d.kovalenko
committed
Using testgres.common
1 parentf8e717e commit5e30dcf

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

‎setup.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
exceptImportError:
44
fromdistutils.coreimportsetup
55

6+
install_requires= [
7+
"testgres.common @ git+https://git.postgrespro.ru/d.kovalenko/preview-testgres.common.git",
8+
]
9+
610
setup(
711
version="0.0.1",
812
name="testgres.os_ops",
@@ -17,4 +21,5 @@
1721
author='Postgres Professional',
1822
author_email='testgres@postgrespro.ru',
1923
keywords=['testgres'],
24+
install_requires=install_requires,
2025
)

‎src/exceptions.py‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
# coding: utf-8
22

3+
fromtestgres.common.exceptionsimportTestgresException
4+
fromtestgres.common.exceptionsimportInvalidOperationException
35
importsix
46

57

6-
classTestgresException(Exception):
7-
pass
8-
9-
108
classExecUtilException(TestgresException):
119
def__init__(self,message=None,command=None,exit_code=0,out=None,error=None):
1210
super(ExecUtilException,self).__init__(message)
@@ -48,5 +46,8 @@ def convert_and_join(msg_list):
4846
returnsix.text_type('\n').join(str_list)
4947

5048

51-
classInvalidOperationException(TestgresException):
52-
pass
49+
__all__= [
50+
type(TestgresException).__name__,
51+
type(InvalidOperationException).__name__,
52+
type(ExecUtilException).__name__,
53+
]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp