-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7b8c44f
commit 257b931
Showing
4 changed files
with
78 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
""" | ||
tests for the warmup script | ||
""" | ||
import os | ||
import subprocess | ||
from uranium.tests.utils import FullUraniumBaseTest | ||
from nose.tools import eq_ | ||
|
||
BASE = os.path.dirname(__file__) | ||
URANIUM_ROOT_PATH = os.path.join(BASE, os.pardir, os.pardir, os.pardir) | ||
|
||
|
||
class TestDownloadPlugin(FullUraniumBaseTest): | ||
|
||
config = { | ||
'phases': { | ||
'after-eggs': ['unit'] | ||
}, | ||
'parts': { | ||
'unit': { | ||
'recipe': 'yt.recipe.shell', | ||
'script': '', | ||
'name': 'unit' | ||
} | ||
} | ||
} | ||
|
||
def test_plugin_is_downloaded(self): | ||
""" | ||
ensure that a plugin is downloaded when it must be utilized. | ||
""" | ||
code = subprocess.check_call(['./bin/python', '-c', 'import yt.recipe'], | ||
cwd=self.root) | ||
eq_(code, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters