Use a database user weewx1 has access to.

This commit is contained in:
Tom Keffer
2022-07-01 14:45:43 -07:00
parent da3077c6c3
commit 68408bb0c1

View File

@@ -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):