def test_all(my): Batch() from pyasm.web.web_init import WebInit WebInit().execute() test_env = UnittestEnvironment() test_env.create() my.transaction = Transaction.get(create=True) try: my.person = Person.create( "Unit", "Test", "ComputerWorld", "Fake Unittest Person") my.search_type = my.person.get_search_type() my.search_id = my.person.get_id() my.context = "test" my.full_context = "test/subtest" my._test_pipeline() my._test_pipeline_connects() my._test_schema() my._test_snapshot() my._test_level() my._test_naming_util() my._test_sobject_hierarchy() my._test_add_tasks() finally: my.transaction.rollback() Project.set_project('unittest') test_env.delete()
def test_all(my): Batch() from pyasm.web.web_init import WebInit WebInit().execute() #TODO add the schema entry to the sample3d plugin first #sample3d_test_env = Sample3dEnvironment() #sample3d_test_env.create() test_env = UnittestEnvironment() test_env.create() my.transaction = Transaction.get(create=True) try: my.person = Person.create("Unit", "Test", "ComputerWorld", "Fake Unittest Person") my.search_type = my.person.get_search_type() my.search_id = my.person.get_id() my.search_code = my.person.get_value("code") my.context = "test" my.full_context = "test/subtest" my._test_instances() my._test_pipeline() my._test_pipeline_connects() my._test_schema() my._test_snapshot() my._test_level() my._test_naming_util() my._test_sobject_hierarchy() my._test_add_tasks() my._test_time() finally: my.transaction.rollback() Project.set_project('unittest') test_env.delete()
def test_all(self): Batch() from pyasm.web.web_init import WebInit WebInit().execute() #TODO add the schema entry to the sample3d plugin first #sample3d_test_env = Sample3dEnvironment() #sample3d_test_env.create() test_env = UnittestEnvironment() test_env.create() self.transaction = Transaction.get(create=True) try: self.person = Person.create( "Unit", "Test", "ComputerWorld", "Fake Unittest Person") self.search_type = self.person.get_search_type() self.search_id = self.person.get_id() self.search_code = self.person.get_value("code") self.context = "test" self.full_context = "test/subtest" self._test_instances() self._test_pipeline() self._test_pipeline_connects() self._test_schema() self._test_snapshot() self._test_level() self._test_naming_util() self._test_sobject_hierarchy() self._test_add_tasks() self._test_time() finally: self.transaction.rollback() Project.set_project('unittest') test_env.delete()
def test_all(self): Batch() from pyasm.web.web_init import WebInit WebInit().execute() test_env = UnittestEnvironment() test_env.create() self.transaction = Transaction.get(create=True) Project.set_project('unittest') try: self.person = Person.create( "Unit", "Test", "ComputerWorld", "Fake Unittest Person") self._test_notification() self.transaction = Transaction.get(create=True) self._test_result() finally: self.transaction.rollback() test_env.delete() return
def test_all(my): Batch() from pyasm.web.web_init import WebInit WebInit().execute() test_env = UnittestEnvironment() test_env.create() my.transaction = Transaction.get(create=True) Project.set_project('unittest') try: my.person = Person.create("Unit", "Test", "ComputerWorld", "Fake Unittest Person") my._test_notification() my.transaction = Transaction.get(create=True) my._test_result() finally: my.transaction.rollback() test_env.delete() return