mirror of
https://github.com/weewx/weewx.git
synced 2026-04-19 17:16:56 -04:00
Use a database user weewx1 has access to.
This commit is contained in:
@@ -107,7 +107,7 @@ class TestMySQL(unittest.TestCase):
|
||||
def test_select_nonexistent_database(self):
|
||||
with Cursor(user='weewx1', passwd='weewx1') as cursor:
|
||||
with self.assertRaises(OperationalError) as e:
|
||||
cursor.execute("SELECT foo from test_foo.bar")
|
||||
cursor.execute("SELECT foo from test_weewx1.bar")
|
||||
self.assertEqual(get_error(e), 1049)
|
||||
|
||||
def test_select_nonexistent_table(self):
|
||||
|
||||
Reference in New Issue
Block a user