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

Commit88b2742

Browse files
committed
tests minor fixes
1 parent49a8575 commit88b2742

21 files changed

+12
-90
lines changed

‎tests/backup_test.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
importos
33
fromtimeimportsleep
44
from .helpers.ptrack_helpersimportProbackupTest,ProbackupException
5-
fromtestgresimportstop_all,clean_all
6-
importshutil
75

86

97
classBackupTest(ProbackupTest,unittest.TestCase):

‎tests/delete_test.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
importunittest
22
importos
33
from .helpers.ptrack_helpersimportProbackupTest,ProbackupException
4-
fromtestgresimportstop_all,clean_all
54
importsubprocess
6-
importshutil
75

86

97
classDeleteTest(ProbackupTest,unittest.TestCase):

‎tests/false_positive.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
importos
33
from .helpers.ptrack_helpersimportProbackupTest,ProbackupException
44
fromdatetimeimportdatetime,timedelta
5-
fromtestgresimportstop_all,clean_all
65
importsubprocess
7-
importshutil
86

97

108
classFalsePositive(ProbackupTest,unittest.TestCase):

‎tests/init_test.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
importunittest
2-
fromsysimportexit
31
importos
4-
fromosimportpath
2+
importunittest
53
from .helpers.ptrack_helpersimportdir_files,ProbackupTest,ProbackupException
6-
fromtestgresimportstop_all,clean_all
7-
importshutil
84

95

106
classInitTest(ProbackupTest,unittest.TestCase):
@@ -67,7 +63,7 @@ def test_abs_path(self):
6763
backup_dir=os.path.join(self.tmp_path,self.module_name,fname,'backup')
6864
node=self.make_simple_node(base_dir="{0}/{1}/node".format(self.module_name,fname))
6965
try:
70-
self.run_pb(["init","-B",path.relpath("%s/backup"%node.base_dir,self.dir_path)])
66+
self.run_pb(["init","-B",os.path.relpath("%s/backup"%node.base_dir,self.dir_path)])
7167
self.assertEqual(1,0,'Expecting Error due to initialization with non-absolute path in --backup-path. Output: {0}\n CMD: {1}'.format(
7268
repr(self.output),self.cmd))
7369
exceptProbackupExceptionase:

‎tests/option_test.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
importunittest
22
importos
33
from .helpers.ptrack_helpersimportProbackupTest,ProbackupException
4-
fromtestgresimportstop_all,clean_all
5-
importshutil
64

75

86
classOptionTest(ProbackupTest,unittest.TestCase):

‎tests/pgpro560.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
importunittest
33
from .helpers.ptrack_helpersimportProbackupTest,ProbackupException,idx_ptrack
44
fromdatetimeimportdatetime,timedelta
5-
fromtestgresimportstop_all,clean_all
65
importsubprocess
7-
importshutil
86

97

108
classCheckSystemID(ProbackupTest,unittest.TestCase):

‎tests/pgpro589.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
importunittest
33
from .helpers.ptrack_helpersimportProbackupTest,ProbackupException,idx_ptrack
44
fromdatetimeimportdatetime,timedelta
5-
fromtestgresimportstop_all,clean_all
65
importsubprocess
7-
importshutil
86

97

108
classArchiveCheck(ProbackupTest,unittest.TestCase):

‎tests/ptrack_clean.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
importos
22
importunittest
3-
fromtestgresimportstop_all,clean_all
43
from .helpers.ptrack_helpersimportProbackupTest,idx_ptrack
5-
importshutil
64

75

86
classSimpleTest(ProbackupTest,unittest.TestCase):

‎tests/ptrack_cluster.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
importos
22
importunittest
3-
fromtestgresimportstop_all,clean_all
43
from .helpers.ptrack_helpersimportProbackupTest,idx_ptrack
5-
importshutil
64

75

86
classSimpleTest(ProbackupTest,unittest.TestCase):

‎tests/ptrack_move_to_tablespace.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
importos
22
importunittest
3-
fromtestgresimportclean_all,stop_all
43
from .helpers.ptrack_helpersimportProbackupTest,idx_ptrack
5-
importshutil
64

75

86
classSimpleTest(ProbackupTest,unittest.TestCase):
97
def__init__(self,*args,**kwargs):
108
super(SimpleTest,self).__init__(*args,**kwargs)
119
self.module_name='ptrack_move_to_tablespace'
1210

13-
# @classmethod
14-
# def tearDownClass(cls):
15-
# clean_all()
16-
# shutil.rmtree(os.path.join(self.tmp_path, self.module_name), ignore_errors=True)
17-
1811
# @unittest.skip("skip")
1912
# @unittest.expectedFailure
2013
deftest_ptrack_recovery(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp