mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-24 19:22:13 +01:00
- workaround for git (because it doesn't support empty dirs)
This commit is contained in:
parent
d8723ef94a
commit
947971b2a2
@ -11,8 +11,16 @@ def suite():
|
||||
|
||||
class TestInitPackage(OscTestCase):
|
||||
def _get_fixtures_dir(self):
|
||||
# workaround for git because it doesn't allow empty dirs
|
||||
if not os.path.exists(os.path.join(FIXTURES_DIR, 'osctest')):
|
||||
os.mkdir(os.path.join(FIXTURES_DIR, 'osctest'))
|
||||
return FIXTURES_DIR
|
||||
|
||||
def tearDown(self):
|
||||
if os.path.exists(os.path.join(FIXTURES_DIR, 'osctest')):
|
||||
os.rmdir(os.path.join(FIXTURES_DIR, 'osctest'))
|
||||
OscTestCase.tearDown(self)
|
||||
|
||||
def test_simple(self):
|
||||
"""initialize a package dir"""
|
||||
pac_dir = os.path.join(self.tmpdir, 'testpkg')
|
||||
|
Loading…
x
Reference in New Issue
Block a user