fakesnow 0.9.14__tar.gz → 0.9.15__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. {fakesnow-0.9.14 → fakesnow-0.9.15}/PKG-INFO +1 -1
  2. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/fakes.py +3 -0
  3. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/PKG-INFO +1 -1
  4. {fakesnow-0.9.14 → fakesnow-0.9.15}/pyproject.toml +1 -1
  5. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_fakes.py +4 -1
  6. {fakesnow-0.9.14 → fakesnow-0.9.15}/LICENSE +0 -0
  7. {fakesnow-0.9.14 → fakesnow-0.9.15}/README.md +0 -0
  8. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/__init__.py +0 -0
  9. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/__main__.py +0 -0
  10. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/checks.py +0 -0
  11. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/cli.py +0 -0
  12. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/expr.py +0 -0
  13. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/fixtures.py +0 -0
  14. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/global_database.py +0 -0
  15. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/info_schema.py +0 -0
  16. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/macros.py +0 -0
  17. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/py.typed +0 -0
  18. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/transforms.py +0 -0
  19. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/SOURCES.txt +0 -0
  20. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/dependency_links.txt +0 -0
  21. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/entry_points.txt +0 -0
  22. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/requires.txt +0 -0
  23. {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/top_level.txt +0 -0
  24. {fakesnow-0.9.14 → fakesnow-0.9.15}/setup.cfg +0 -0
  25. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_checks.py +0 -0
  26. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_cli.py +0 -0
  27. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_expr.py +0 -0
  28. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_info_schema.py +0 -0
  29. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_patch.py +0 -0
  30. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_sqlalchemy.py +0 -0
  31. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_transforms.py +0 -0
  32. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_users.py +0 -0
  33. {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_write_pandas.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fakesnow
3
- Version: 0.9.14
3
+ Version: 0.9.15
4
4
  Summary: Fake Snowflake Connector for Python. Run, mock and test Snowflake DB locally.
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -297,6 +297,9 @@ class FakeSnowflakeCursor:
297
297
  elif cmd == "CREATE TABLE" and ident:
298
298
  result_sql = SQL_CREATED_TABLE.substitute(name=ident)
299
299
 
300
+ elif cmd.startswith("ALTER") and ident:
301
+ result_sql = SQL_SUCCESS
302
+
300
303
  elif cmd == "CREATE VIEW" and ident:
301
304
  result_sql = SQL_CREATED_VIEW.substitute(name=ident)
302
305
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fakesnow
3
- Version: 0.9.14
3
+ Version: 0.9.15
4
4
  Summary: Fake Snowflake Connector for Python. Run, mock and test Snowflake DB locally.
5
5
  License: Apache License
6
6
  Version 2.0, January 2004
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "fakesnow"
3
3
  description = "Fake Snowflake Connector for Python. Run, mock and test Snowflake DB locally."
4
- version = "0.9.14"
4
+ version = "0.9.15"
5
5
  readme = "README.md"
6
6
  license = { file = "LICENSE" }
7
7
  classifiers = ["License :: OSI Approved :: MIT License"]
@@ -589,10 +589,13 @@ def test_description_create_drop_schema(dcur: snowflake.connector.cursor.DictCur
589
589
  assert dcur.description == [ResultMetadata(name='status', type_code=2, display_size=None, internal_size=16777216, precision=None, scale=None, is_nullable=True)] # fmt: skip
590
590
 
591
591
 
592
- def test_description_create_drop_table(dcur: snowflake.connector.cursor.DictCursor):
592
+ def test_description_create_alter_drop_table(dcur: snowflake.connector.cursor.DictCursor):
593
593
  dcur.execute("create table example (x int)")
594
594
  assert dcur.fetchall() == [{"status": "Table EXAMPLE successfully created."}]
595
595
  assert dcur.description == [ResultMetadata(name='status', type_code=2, display_size=None, internal_size=16777216, precision=None, scale=None, is_nullable=True)] # fmt: skip
596
+ dcur.execute("alter table example add column name varchar(20)")
597
+ assert dcur.fetchall() == [{"status": "Statement executed successfully."}]
598
+ assert dcur.description == [ResultMetadata(name='status', type_code=2, display_size=None, internal_size=16777216, precision=None, scale=None, is_nullable=True)] # fmt: skip
596
599
  dcur.execute("drop table example")
597
600
  assert dcur.fetchall() == [{"status": "EXAMPLE successfully dropped."}]
598
601
  assert dcur.description == [ResultMetadata(name='status', type_code=2, display_size=None, internal_size=16777216, precision=None, scale=None, is_nullable=True)] # fmt: skip
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes