Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The test for SQLAlchemy is broken #49

Closed
laughingman7743 opened this issue Oct 5, 2018 · 0 comments
Closed

The test for SQLAlchemy is broken #49

laughingman7743 opened this issue Oct 5, 2018 · 0 comments

Comments

@laughingman7743
Copy link
Owner

============================= test session starts ==============================
platform linux -- Python 3.6.3, pytest-3.8.2, py-1.6.0, pluggy-0.7.1
rootdir: /home/travis/build/laughingman7743/PyAthena, inifile: setup.cfg
plugins: flake8-1.0.2, cov-2.6.0
collected 121 items
setup.py .                                                               [  0%]
pyathena/__init__.py .                                                   [  1%]
pyathena/async_cursor.py .                                               [  2%]
pyathena/common.py .                                                     [  3%]
pyathena/connection.py .                                                 [  4%]
pyathena/converter.py .                                                  [  4%]
pyathena/cursor.py .                                                     [  5%]
pyathena/error.py .                                                      [  6%]
pyathena/formatter.py .                                                  [  7%]
pyathena/model.py .                                                      [  8%]
pyathena/pandas_cursor.py .                                              [  9%]
pyathena/result_set.py .                                                 [  9%]
pyathena/sqlalchemy_athena.py .                                          [ 10%]
pyathena/util.py .                                                       [ 11%]
tests/__init__.py .                                                      [ 12%]
tests/conftest.py .                                                      [ 13%]
tests/test_async_cursor.py ...............                               [ 25%]
tests/test_cursor.py ................................                    [ 52%]
tests/test_formatter.py ......................                           [ 70%]
tests/test_pandas_cursor.py .................                            [ 84%]
tests/test_result_set.py ...                                             [ 86%]
tests/test_sqlalchemy_athena.py .....F.........                          [ 99%]
tests/util.py .                                                          [100%]
=================================== FAILURES ===================================
_____________________ TestSQLAlchemyAthena.test_has_table ______________________
self = <tests.test_sqlalchemy_athena.TestSQLAlchemyAthena testMethod=test_has_table>
engine = Engine(awsathena+rest://athena.[secure].amazonaws.com:443/test_pyathena_6msjtv4t1y?s3_staging_dir=[secure])
connection = <sqlalchemy.engine.base.Connection object at 0x7f2dfb800390>
    @with_engine
    def test_has_table(self, engine, connection):
        self.assertTrue(Table('one_row', MetaData(bind=engine)).exists())
>       self.assertFalse(Table('this_table_does_not_exist', MetaData(bind=engine)).exists())
E       AssertionError: True is not false
tests/test_sqlalchemy_athena.py:115: AssertionError
laughingman7743 added a commit that referenced this issue Oct 6, 2018
…e_method_in_sqlalchemy

Fix condition of has_table method in SQLAlchemy (fix #49)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant