Skip to content

Commit

Permalink
Correct test naming
Browse files Browse the repository at this point in the history
An error meant that the name of the current test included the name
of the prior test. Each test name getting longer and longer.
  • Loading branch information
cdent committed Jan 14, 2015
1 parent e95143a commit f8ab883
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gabbi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# License for the specific language governing permissions and limitations
# under the License.

__version__ = '0.3.2'
__version__ = '0.3.3'
4 changes: 2 additions & 2 deletions gabbi/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def load_yaml(yaml_file):
return yaml.safe_load(source.read())


def test_suite_from_yaml(loader, test_name, test_yaml, test_directory,
def test_suite_from_yaml(loader, test_base_name, test_yaml, test_directory,
host, port, fixture_module):
"""Generate a TestSuite from YAML data."""

Expand All @@ -145,7 +145,7 @@ def test_suite_from_yaml(loader, test_name, test_yaml, test_directory,
test = dict(base_test_data)
test.update(test_datum)

test_name = '%s_%s' % (test_name,
test_name = '%s_%s' % (test_base_name,
test['name'].lower().replace(' ', '_'))

if set(test.keys()) != set(BASE_TEST.keys()):
Expand Down

0 comments on commit f8ab883

Please sign in to comment.