def test_get_url(engine, username, password, host, port, database, expected_url):
    """Test generation of URL.

    Args:
        engine: Database engine.
        username: Database username.
        password: Database password.
        host: Database host.
        port: Database port.
        database: Database name.
        expected_url: Expected database URL generated.
    """
    db_config = DBConfig(
        engine=engine,
        username=username,
        password=password,
        host=host,
        port=port,
        database=database,
    )
    assert db_config.get_url() == expected_url
Test generation of URL.

    Args:
        engine: Database engine.
        username: Database username.
        password: Database password.
        host: Database host.
        port: Database port.
        database: Database name.
        expected_url: Expected database URL generated.
    
tests/units/test_db_config.py