Skip to content
This repository was archived by the owner on Oct 25, 2018. It is now read-only.

Commit 61162ee

Browse files
author
Сосна Евгений
committed
доработка подготовки тестов.
1 parent a43c813 commit 61162ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/test_compile.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import unittest
22
import pyv8unpack
33
from os import path as path
4+
import os
45
import tempfile
56
import shutil
67

@@ -12,11 +13,21 @@ def setUp(self):
1213
self.tpath = tempfile.mkdtemp()
1314
self.tfile = tempfile.mktemp()
1415

16+
pathIb = path.join(path.curdir, ".git", "hooks", "ibService")
17+
if (path.exists(pathIb)):
18+
shutil.rmtree(pathIb)
19+
shutil.copytree(path.join(path.curdir, "ibService"),
20+
pathIb)
21+
shutil.copy(path.join(path.curdir, "V8Reader.epf"),
22+
path.join(path.curdir, ".git", "hooks", "V8Reader.epf"))
23+
1524
def tearDown(self):
1625
import os
1726
if os.path.exists(self.tfile):
1827
os.remove(self.tfile)
1928
shutil.rmtree(self.tpath)
29+
shutil.rmtree(path.join(path.curdir, ".git", "hooks", "ibService"))
30+
os.remove(path.join(path.curdir, ".git", "hooks", "V8Reader.epf"))
2031

2132

2233
def test_compile_from_source(self):

0 commit comments

Comments
 (0)