def setUp(self): """ set up some basics for the coming tests """ self.template = BaseTemplate('my_name') self.license_vars = { 'author': 'Frank Herbert', 'author_email': '*****@*****.**', 'license_name': 'GPL', 'project': 'my.package', } command = CreateDistroCommand() command.parse_args(['-t', 'nested_namespace']) self.command = command self.command.interactive = False self.tempdir = tempfile.mkdtemp()
def setUp(self): """ set up some basics for the coming tests """ self.vars = [ DottedVar('egg', 'This is a string variable', title="String Title", default="string", page='Carl', modes=(EXPERT)), ] self.template = BaseTemplate('my_name') command = CreateDistroCommand() command.parse_args(['-t', 'package']) command.interactive = False self.command = command # create a temp directory and move there, remember where we came from self.orig_dir = os.getcwd() self.temp_dir = tempfile.mkdtemp() cd(self.temp_dir)
def setUp(self): """ set up some basics for the coming tests """ self.vars = [ var('basic_var', 'This is a basic variable', title="Basic Title", default="foo", modes=(EXPERT, EASY)), BooleanVar('bool_var', 'This is a boolean variable', title="Boolean Title", default=False, page='Main', modes=(EASY)), StringVar('str_var', 'This is a string variable', title="String Title", default="string", page='Carl', modes=(EXPERT)), TextVar('txt_var', 'This is a text variable', page='Martin', title="Text Title", default="text", modes=()), DottedVar('dot_var', 'This is a dotted variable', title="Dotted Title", default="dotted.variable")] self.template = BaseTemplate('my_name') command = CreateDistroCommand() command.parse_args(['-t', 'nested_namespace']) self.command = command