diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-04-24 18:53:45 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-04-24 18:53:45 +0300 |
commit | dd9f990ee395c1a017b4507dfcf7bed415446cee (patch) | |
tree | 00d9a5f0560ff538d033204dd1b8bf664471aea7 | |
parent | 30767d7c952cca67d047032f02a9f65a96faa938 (diff) | |
download | git.liw.fi-ruleset-tests-dd9f990ee395c1a017b4507dfcf7bed415446cee.tar.gz |
Fix saving of vars when list value is appended to
-rw-r--r-- | 000.yarn | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -268,10 +268,7 @@ WHEN admin creates user IMPLEMENTS WHEN admin creates user (\S+) username = get_next_match() - if vars['users'] is None: - vars['users'] = [] - vars['users'].append(username) - # FIXME: Create first, this is temporary + append('users', username) gitano( None, 'user add {} {}@example.com Test {}'.format( @@ -285,9 +282,7 @@ WHEN admin creates group IMPLEMENTS WHEN admin creates group (\S+) group = get_next_match() - if vars['groups'] is None: - vars['groups'] = [] - vars['groups'].append(group) + append('groups', group) gitano(None, 'group add {} Test group'.format(group)) WHEN admin adds user to group @@ -304,9 +299,7 @@ WHEN admin created repository IMPLEMENTS WHEN admin creates repository (\S+) repo = get_next_match() - if vars['repositories'] is None: - vars['repositories'] = [] - vars['repositories'].append(repo) + append('repositories', repo) gitano(None, 'create {}'.format(repo)) |