def test_set_language_option_with_l(self): a,b, options = pyeature.parse_args(['-l', 'ko'] + self.default_args) assert options.lang == "ko"
def test_default_language_is_en(self): a,b, options = pyeature.parse_args(self.default_args) assert options.lang == "en"
def test_language_option_loads_proper_keyword_dictionary(self): # FIXME: should test that keyword_dictionary is being used under the hood feature,step,options = pyeature.parse_args(['-l', 'ko'] + self.default_args) clauses = pyeature.extract(ko_text, pyeature.lang[options.lang]) assert len(clauses) is 8
def test_feature_file_and_step_definition_directory(self): feature_file, step_definition_directory, options = pyeature.parse_args(self.default_args) assert feature_file == self.feature_file assert step_definition_directory == self.step_definition_directory
def run_pyeature(self, feature=None, step=None, output=None): if feature is None: feature = self.sample_filename if step is None: step = self.step_filename if output is None: output = self.output feature,step,options = pyeature.parse_args([feature, step]) return pyeature.run(feature, step, options, output)