Skip to content

Commit

Permalink
Changed variable name to environment from environ
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Jan 23, 2024
1 parent 6ccc8cd commit 9dba5a9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,17 @@ def test_smoke(self):
m = mock_open()
with patch('builtins.open', m):
write_checkbox_conf({'foo': 'bar'})
m().write.assert_called_with('[environ]\n')
m().write.assert_called_with('FOO = bar\n')
m().write.assert_called_with('\n')
m().write.assert_any_call('[environment]\n')
m().write.assert_any_call('FOO = bar\n')
m().write.assert_any_call('\n')
self.assertEqual(m().write.call_count, 3)

def test_writes_empty(self):
m = mock_open()
with patch('builtins.open', m):
write_checkbox_conf({})
m().write.assert_called_with('[environ]\n')
m().write.assert_called_with('\n')
m().write.assert_any_call('[environment]\n')
m().write.assert_any_call('\n')
self.assertEqual(m().write.call_count, 2)


Expand Down

0 comments on commit 9dba5a9

Please sign in to comment.