betodealmeida opened a new issue #18747: URL: https://github.com/apache/superset/issues/18747
Currently most of our Python tests are implemented as "integration" tests under `tests/integration_tests`, and require setting up a database and populating with data in order to run. This is overkill for many of the tests, and makes it hard to develop Superset since a local test run takes minutes. @ofekisr created a new directory for proper unit tests. In addition to encouraging people to write proper unit tests under the new `tests/unit_tests` directory we should also convert the old tests. @betodealmeida started this process, but there's still a lot to do. Fortunately, there are a lot of low hanging fruits. ## Straightforward - `commands_test.py` - `email_tests.py` - `form_tests.py` - `logging_configurator_tests.py` - `pandas_postprocessing_tests.py` - `result_set_tests.py` - `viz_tests.py` - `databases/schema_tests.py` - `db_engine_specs/ascend_tests.py` - `db_engine_specs/clickhouse_tests.py` - `db_engine_specs/dremio_tests.py` - `db_engine_specs/drill_tests.py` - `db_engine_specs/druid_tests.py` - `db_engine_specs/elasticsearch_tests.py` - `db_engine_specs/firebird_tests.py` - `db_engine_specs/firebolt_tests.py` - `db_engine_specs/gsheets_tests.py` - `db_engine_specs/hana_tests.py` - `db_engine_specs/impala_tests.py` - `db_engine_specs/kylin_tests.py` - `db_engine_specs/mssql_tests.py` - `db_engine_specs/mysql_tests.py` - `db_engine_specs/oracle_tests.py` - `db_engine_specs/pinot_tests.py` - `db_engine_specs/presto_tests.py` - `db_engine_specs/redshift_tests.py` - `db_engine_specs/snowflake_tests.py` - `db_engine_specs/sqlite_tests.py` - `db_engine_specs/trino_tests.py` - `security/analytics_db_safety_tests.py` - `utils/core_tests.py` - `utils/csv_tests.py` - `utils/date_parser_tests.py` - `utils/decorators_tests.py` - `utils/hashing_tests.py` - `utils/public_interfaces_test.py` ## Require fixture(s) - `cache_tests.py` - `cli_tests.py` - `jinja_context_tests.py` - `db_engine_specs/crate_tests.py` - `db_engine_specs/hive_tests.py` - `db_engine_specs/postgres_tests.py` - `utils/encrypt_tests.py` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org