Skip to content

Commit

Permalink
added limit to test suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Jan 6, 2024
1 parent 2d74699 commit c767897
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/catalog.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.4", "generated_at": "2024-01-06T01:44:43.663493Z", "invocation_id": "5d81655e-d2b5-447d-9046-c09af1b550e3", "env": {}}, "nodes": {"seed.testgen_integration_tests.colnames_with_spaces": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "colnames_with_spaces", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"first name": {"type": "VARCHAR", "index": 1, "name": "first name", "comment": null}, "age (years)": {"type": "INTEGER", "index": 2, "name": "age (years)", "comment": null}, "current city": {"type": "VARCHAR", "index": 3, "name": "current city", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.colnames_with_spaces"}, "seed.testgen_integration_tests.sp500_daily": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "sp500_daily", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"day": {"type": "DATE", "index": 1, "name": "day", "comment": null}, "close": {"type": "DOUBLE", "index": 2, "name": "close", "comment": null}, "open": {"type": "DOUBLE", "index": 3, "name": "open", "comment": null}, "high": {"type": "DOUBLE", "index": 4, "name": "high", "comment": null}, "low": {"type": "DOUBLE", "index": 5, "name": "low", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.sp500_daily"}, "seed.testgen_integration_tests.sp500_monthly": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "sp500_monthly", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"month": {"type": "DATE", "index": 1, "name": "month", "comment": null}, "sp500": {"type": "DOUBLE", "index": 2, "name": "sp500", "comment": null}, "dividend": {"type": "DOUBLE", "index": 3, "name": "dividend", "comment": null}, "earnings": {"type": "DOUBLE", "index": 4, "name": "earnings", "comment": null}, "consumer_price_index": {"type": "DOUBLE", "index": 5, "name": "consumer_price_index", "comment": null}, "long_interest_rate": {"type": "DOUBLE", "index": 6, "name": "long_interest_rate", "comment": null}, "real_price": {"type": "DOUBLE", "index": 7, "name": "real_price", "comment": null}, "real_dividend": {"type": "DOUBLE", "index": 8, "name": "real_dividend", "comment": null}, "real_earnings": {"type": "DOUBLE", "index": 9, "name": "real_earnings", "comment": null}, "pe10": {"type": "DOUBLE", "index": 10, "name": "pe10", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.sp500_monthly"}, "seed.testgen_integration_tests.users": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "users", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"user_id": {"type": "INTEGER", "index": 1, "name": "user_id", "comment": null}, "username": {"type": "VARCHAR", "index": 2, "name": "username", "comment": null}, "email": {"type": "VARCHAR", "index": 3, "name": "email", "comment": null}, "age": {"type": "INTEGER", "index": 4, "name": "age", "comment": null}, "user_status": {"type": "VARCHAR", "index": 5, "name": "user_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.users"}}, "sources": {}, "errors": null}
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.4", "generated_at": "2024-01-06T05:37:19.423487Z", "invocation_id": "37acaa50-be2b-46a3-9524-6fa33212e45e", "env": {}}, "nodes": {"seed.testgen_integration_tests.colnames_with_spaces": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "colnames_with_spaces", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"first name": {"type": "VARCHAR", "index": 1, "name": "first name", "comment": null}, "age (years)": {"type": "INTEGER", "index": 2, "name": "age (years)", "comment": null}, "current city": {"type": "VARCHAR", "index": 3, "name": "current city", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.colnames_with_spaces"}, "seed.testgen_integration_tests.sp500_daily": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "sp500_daily", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"day": {"type": "DATE", "index": 1, "name": "day", "comment": null}, "close": {"type": "DOUBLE", "index": 2, "name": "close", "comment": null}, "open": {"type": "DOUBLE", "index": 3, "name": "open", "comment": null}, "high": {"type": "DOUBLE", "index": 4, "name": "high", "comment": null}, "low": {"type": "DOUBLE", "index": 5, "name": "low", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.sp500_daily"}, "seed.testgen_integration_tests.sp500_monthly": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "sp500_monthly", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"month": {"type": "DATE", "index": 1, "name": "month", "comment": null}, "sp500": {"type": "DOUBLE", "index": 2, "name": "sp500", "comment": null}, "dividend": {"type": "DOUBLE", "index": 3, "name": "dividend", "comment": null}, "earnings": {"type": "DOUBLE", "index": 4, "name": "earnings", "comment": null}, "consumer_price_index": {"type": "DOUBLE", "index": 5, "name": "consumer_price_index", "comment": null}, "long_interest_rate": {"type": "DOUBLE", "index": 6, "name": "long_interest_rate", "comment": null}, "real_price": {"type": "DOUBLE", "index": 7, "name": "real_price", "comment": null}, "real_dividend": {"type": "DOUBLE", "index": 8, "name": "real_dividend", "comment": null}, "real_earnings": {"type": "DOUBLE", "index": 9, "name": "real_earnings", "comment": null}, "pe10": {"type": "DOUBLE", "index": 10, "name": "pe10", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.sp500_monthly"}, "seed.testgen_integration_tests.users": {"metadata": {"type": "BASE TABLE", "schema": "main_integration_test_data", "name": "users", "database": "integration_test_data", "comment": null, "owner": null}, "columns": {"user_id": {"type": "INTEGER", "index": 1, "name": "user_id", "comment": null}, "username": {"type": "VARCHAR", "index": 2, "name": "username", "comment": null}, "email": {"type": "VARCHAR", "index": 3, "name": "email", "comment": null}, "age": {"type": "INTEGER", "index": 4, "name": "age", "comment": null}, "user_status": {"type": "VARCHAR", "index": 5, "name": "user_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.testgen_integration_tests.users"}}, "sources": {}, "errors": null}
2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

32 changes: 23 additions & 9 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@

:root {
--main-bg-color: rgb(85, 85, 85);
--secondary-bg-color: rgb(209, 209, 209);
--main-bg-color: rgb(199, 199, 199);
--main-color: rgb(85, 85, 85);
}

search {
background-color: var(--secondary-bg-color) !important ;
background-color: var(--main-bg-color) !important ;
color: var(--main-color) !important;
}

.panel-body {
background-color: var(--secondary-bg-color) !important ;
background-color: var(--main-bg-color) !important ;
color: var(--main-color) !important;
}

Expand All @@ -32,7 +31,7 @@ search {
}

.app-links {
background-color: var(--secondary-bg-color) !important ;
background-color: var(--main-bg-color) !important ;
color: var(--main-color) !important;
}

Expand All @@ -42,14 +41,29 @@ search {
}

.switch-label {
background-color: var(--secondary-bg-color) !important ;
background-color: var(--main-bg-color) !important ;
color: var(--main-color) !important;
}

.filename {
background-color: var(--secondary-bg-color) !important ;
background-color: var(--main-bg-color) !important ;
}

.app-scroll {
background-color: var(--secondary-bg-color) !important ;
}
background-color: var(--main-bg-color) !important ;
}

.app-details {
background-color: var(--main-bg-color) !important ;
color: var(--main-color) !important;
}

.app-pad {
background-color: var(--main-bg-color) !important ;
color: var(--main-color) !important;
}

.app-header {
background-color: var(--main-bg-color) !important ;
color: var(--main-color) !important;
}
9 changes: 9 additions & 0 deletions integration_tests/overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{% docs __overview__ %}
Welcome!
Welcome to the auto-generated documentation for `dbt-testgen`!

Navigation
Use the Project tab to look at the macros and seeds in this project.

{% enddocs %}
2 changes: 1 addition & 1 deletion macros/test_aggregation/get_test_suggestions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% macro get_test_suggestions(
table_relation,
sample = false,
limit = None,
limit = 10000,
resource_type = "models",
column_config = {},
exclude_types = [],
Expand Down

0 comments on commit c767897

Please sign in to comment.