Skip to content

Commit 9e65b3f

Browse files
committed
Docs: Fix copy/paste.
1 parent 67a1596 commit 9e65b3f

File tree

7 files changed

+11
-922
lines changed

7 files changed

+11
-922
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Pytest GCS
1+
## Pytest BQ
22

3-
This is a pytest plugin in similar vein to [pytest-postgres](https://github.com/ClearcodeHQ/pytest-postgresql) and [pytest-kafka](https://pypi.org/project/pytest-kafka/).
3+
This is a pytest plugin in similar vein to [pytest-postgres](https://github.com/ClearcodeHQ/pytest-postgresql) and [pytest-kafka](https://pypi.org/project/pytest-kafka/). It runs a local version of bigquery that you can use throughout your test suite.
44

55
This would have been much more painful without [Mirakuru](https://github.com/ClearcodeHQ/mirakuru)
66
and [bigquery-emulator](https://github.com/goccy/bigquery-emulator); this is a simple wrapper around
@@ -68,4 +68,5 @@ pytest tests/
6868

6969
### TODOs
7070

71-
* Implement the events outputs, `-event.bucket`, `-event.list`, etc.
71+
* Validate `data_from_yaml` files.
72+
* Tools for dummy data generation.

poetry.lock

Lines changed: 0 additions & 913 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pytest-bq"
3-
version = "0.0.1"
3+
version = "0.0.2"
44
description = "BigQuery fixtures and fixture factories for Pytest."
55
readme = "README.md"
66
keywords = ["tests", "pytest", "fixture", "bq"]

pytest_bq/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
"""pytest-bq plugin."""
2-
__version__ = "0.0.1"
2+
__version__ = "0.0.2"

pytest_bq/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ class GcsConfigType(TypedDict):
1010

1111
executable: str
1212
port: Optional[int]
13-
groc_port: Optional[int]
13+
grpc_port: Optional[int]
1414
project_id: str
1515
loglevel: str
16+
data_from_yaml: str
1617

1718

1819
def get_config(request: FixtureRequest) -> GcsConfigType:

pytest_bq/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"Level for bucket logging. level for logging. Options"
1515
" same as for logrus: trace, debug, info, warn, error, fatal, and panic"
1616
)
17-
_HELP_PROJECT_ID = ""
18-
_HELP_DATA_FROM_YAML = ""
17+
_HELP_PROJECT_ID = "Project ID to use."
18+
_HELP_DATA_FROM_YAML = "bigquery-emulator configuration to use."
1919

2020

2121
def pytest_addoption(parser: Parser) -> None:

shell.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let
3131
# Install our dependencies with soruces defined above.
3232
in
3333
pkgs.mkShell {
34-
name = "projects.ki-ckstart-python";
34+
name = "projects.pytest_bq";
3535

3636
buildInputs = [
3737
google-sdk

0 commit comments

Comments
 (0)