]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Fix boolean value of os.access when mocking it for init test
authorAviskar KC <aviskarkc10@gmail.com>
Tue, 18 Jun 2019 15:10:52 +0000 (20:55 +0545)
committerAviskar KC <aviskarkc10@gmail.com>
Tue, 18 Jun 2019 15:10:52 +0000 (20:55 +0545)
tests/test_command.py

index b4dd0bb2bcf2766b92f409d7b10a0d87cfcb6872..04125d296f9567a54ceb03715812c89297e993c2 100644 (file)
@@ -800,7 +800,7 @@ class CommandLineTest(TestBase):
         assert not commands, "Commands without help text: %s" % commands
     
     @mock.patch("alembic.command.os.listdir", return_value = ['file1', 'file2'])
-    @mock.patch("alembic.command.os.access", return_value = False)
+    @mock.patch("alembic.command.os.access", return_value = True)
     def test_init_file_exists_and_is_not_empty(self, mocked_listdir, mocked_access):
         directory = 'alembic'
         assert_raises_message(