{"action":"created","issue":{"url":"https://api.github.com/repos/kblomqvist/yasha/issues/40","repository_url":"https://api.github.com/repos/kblomqvist/yasha","labels_url":"https://api.github.com/repos/kblomqvist/yasha/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/kblomqvist/yasha/issues/40/comments","events_url":"https://api.github.com/repos/kblomqvist/yasha/issues/40/events","html_url":"https://github.com/kblomqvist/yasha/pull/40","id":299184759,"number":40,"title":"Support for multiple variables files","user":{"login":"jpotter","id":532530,"avatar_url":"https://avatars2.githubusercontent.com/u/532530?v=4","gravatar_id":"","url":"https://api.github.com/users/jpotter","html_url":"https://github.com/jpotter","followers_url":"https://api.github.com/users/jpotter/followers","following_url":"https://api.github.com/users/jpotter/following{/other_user}","gists_url":"https://api.github.com/users/jpotter/gists{/gist_id}","starred_url":"https://api.github.com/users/jpotter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpotter/subscriptions","organizations_url":"https://api.github.com/users/jpotter/orgs","repos_url":"https://api.github.com/users/jpotter/repos","events_url":"https://api.github.com/users/jpotter/events{/privacy}","received_events_url":"https://api.github.com/users/jpotter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-02-22T00:54:18Z","updated_at":"2018-03-09T14:30:38Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/kblomqvist/yasha/pulls/40","html_url":"https://github.com/kblomqvist/yasha/pull/40","diff_url":"https://github.com/kblomqvist/yasha/pull/40.diff","patch_url":"https://github.com/kblomqvist/yasha/pull/40.patch"},"body":"Allows for multiple --variables options to be given"},"comment":{"url":"https://api.github.com/repos/kblomqvist/yasha/issues/comments/371827724","html_url":"https://github.com/kblomqvist/yasha/pull/40#issuecomment-371827724","issue_url":"https://api.github.com/repos/kblomqvist/yasha/issues/40","id":371827724,"user":{"login":"kblomqvist","id":206775,"avatar_url":"https://avatars3.githubusercontent.com/u/206775?v=4","gravatar_id":"","url":"https://api.github.com/users/kblomqvist","html_url":"https://github.com/kblomqvist","followers_url":"https://api.github.com/users/kblomqvist/followers","following_url":"https://api.github.com/users/kblomqvist/following{/other_user}","gists_url":"https://api.github.com/users/kblomqvist/gists{/gist_id}","starred_url":"https://api.github.com/users/kblomqvist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kblomqvist/subscriptions","organizations_url":"https://api.github.com/users/kblomqvist/orgs","repos_url":"https://api.github.com/users/kblomqvist/repos","events_url":"https://api.github.com/users/kblomqvist/events{/privacy}","received_events_url":"https://api.github.com/users/kblomqvist/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T14:30:38Z","updated_at":"2018-03-09T14:30:38Z","author_association":"OWNER","body":"The test does not need to be complex. Something like this is enough.\r\n\r\n```python\r\ndef test_two_explicit_variable_files(tmpdir):\r\n    # Template to calculate a + b \r\n    tpl = tmpdir.join('template.j2')\r\n    tpl.write('{{ a + b }}')\r\n\r\n    # First variable file\r\n    a = tmpdir.join('a.yaml')\r\n    a.write('a: 1')\r\n\r\n    # Second variable file\r\n    b = tmpdir.join('b.toml')\r\n    b.write('b = 2')\r\n\r\n    errno = call(('yasha', '-v', str(a), '-v', str(b), str(tpl)))\r\n    assert errno == 0\r\n\r\n    output = tmpdir.join('template')\r\n    assert output.read() == '3' # a + b = 1 + 2 = 3\r\n```"}}
{"actor":{"display_login":"kblomqvist"}}