-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial work to support streams (#155)
- Loading branch information
Showing
19 changed files
with
791 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ARG BASE_IMG=? | ||
|
||
FROM $BASE_IMG | ||
|
||
WORKDIR /fauna-python | ||
VOLUME /fauna-python | ||
|
||
COPY . /fauna-python/ | ||
|
||
RUN cd /fauna-python && pip install . .[test] .[lint] --use-pep517 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
version: "3" | ||
|
||
services: | ||
db: | ||
image: fauna/faunadb:latest | ||
ports: | ||
- "8443:8443" | ||
volumes: | ||
- ../docker/feature-flags.json:/etc/feature-flag-periodic.d/feature-flags.json | ||
test: | ||
image: fauna-python-test:latest | ||
build: | ||
context: ../ | ||
dockerfile: docker/Dockerfile | ||
integration-test: | ||
image: fauna-python-test:latest | ||
volumes: | ||
- ..:/fauna-python | ||
command: | ||
- /bin/bash | ||
- -cx | ||
- | | ||
while ! curl -s --fail -m 1 http://db:8443/ping 2>&1; do sleep 3; done | ||
pytest -v --cov=fauna --cov-context=test tests/integration | ||
environment: | ||
- FAUNA_ENDPOINT=http://db:8443 | ||
depends_on: | ||
- db | ||
unit-test: | ||
image: fauna-python-test:latest | ||
volumes: | ||
- ..:/fauna-python | ||
command: pytest -v --cov=fauna --cov-context=test tests/unit | ||
coverage: | ||
image: fauna-python-test:latest | ||
volumes: | ||
- ..:/fauna-python | ||
command: coverage html --show-contexts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"version": 1, | ||
"properties": [ | ||
{ | ||
"property_name": "cluster_name", | ||
"property_value": "fauna", | ||
"flags": { | ||
"fql2_schema": true, | ||
"fqlx_typecheck_default": true, | ||
"persisted_fields": true, | ||
"changes_by_collection_index": true, | ||
"fql2_streams": true | ||
} | ||
}, | ||
{ | ||
"property_name": "account_id", | ||
"property_value": 0, | ||
"flags": { | ||
"fql2_schema": true, | ||
"fqlx_typecheck_default": true, | ||
"persisted_fields": true, | ||
"changes_by_collection_index": true, | ||
"fql2_streams": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .client import Client, QueryOptions | ||
from .client import Client, QueryOptions, StreamOptions | ||
from .endpoints import Endpoints | ||
from .headers import Header |
Oops, something went wrong.