You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More thorough integration tests for pg, redshift, snowflake, bq (#27)
* more thorough integration tests for pg, redshift, snowflake, bq
* tidy and comments
* add gh workflow to run pg integration tests on PRs
* fix csv name in workflow
* remove psutil dependency
* add dotenv dependency
* update README and include path in comments
PGPASSWORD=test psql -h localhost -U test -d pontoon -c "CREATE TABLE source.leads_xs (id uuid NOT NULL,created_at timestamp NOT NULL,updated_at timestamp NOT NULL,customer_id text NOT NULL,name text NOT NULL,email text NOT NULL,score integer NOT NULL,notes text);"
70
+
PGPASSWORD=test psql -h localhost -U test -d pontoon -c "\COPY source.leads_xs(id,created_at,updated_at,customer_id,name,email,score,notes) FROM 'tests/data/leads_xs_20250701.csv' CSV HEADER;"
Copy file name to clipboardExpand all lines: data-transfer/pontoon/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,5 +50,6 @@ Create schemas named `source` and `target`. Load the `tests/data/leads_xs_*.csv`
50
50
Create schemas named `pontoon` and `target`. Load the same test data into `pontoon.leads_xs`
51
51
52
52
## Running
53
+
Install test dependencies: `pytest` and `python-dotenv`.
53
54
54
-
`make tests`or use `pytest` directly to run specific sets of tests.
55
+
`make test`, `make test-integration`or use `pytest` directly to run specific sets of tests, e.g. `pytest -s tests/integration/test_postgres_connectors.py`
0 commit comments