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.
- {fakesnow-0.9.14 → fakesnow-0.9.15}/PKG-INFO +1 -1
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/fakes.py +3 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/PKG-INFO +1 -1
- {fakesnow-0.9.14 → fakesnow-0.9.15}/pyproject.toml +1 -1
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_fakes.py +4 -1
- {fakesnow-0.9.14 → fakesnow-0.9.15}/LICENSE +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/README.md +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/__init__.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/__main__.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/checks.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/cli.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/expr.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/fixtures.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/global_database.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/info_schema.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/macros.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/py.typed +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow/transforms.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/SOURCES.txt +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/dependency_links.txt +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/entry_points.txt +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/requires.txt +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/fakesnow.egg-info/top_level.txt +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/setup.cfg +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_checks.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_cli.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_expr.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_info_schema.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_patch.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_sqlalchemy.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_transforms.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_users.py +0 -0
- {fakesnow-0.9.14 → fakesnow-0.9.15}/tests/test_write_pandas.py +0 -0
@@ -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,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.
|
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
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|