Skip to content

HDXDSYS-1318 Simplify poverty rate HAPI pipeline to read from global… #1382

HDXDSYS-1318 Simplify poverty rate HAPI pipeline to read from global…

HDXDSYS-1318 Simplify poverty rate HAPI pipeline to read from global… #1382

GitHub Actions / Test Results failed Feb 8, 2025 in 0s

13 errors, 3 pass in 20s

16 tests    3 ✅  20s ⏱️
 1 suites   0 💤
 1 files     0 ❌  13 🔥

Results for commit 0d0c3e3.

Annotations

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_food_security[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62dd60>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'food_security': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff9df820>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_refugees_and_returnees[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62e810>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'refugees_and_returnees': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff55b5b0>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_poverty_rate[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62f0e0>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'poverty_rate': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff067430>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_humanitarian_needs[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62e1e0>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'humanitarian_needs': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff06b5b0>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_sector_currency[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f19001e5400>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'nothing': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff14ad10>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_funding[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62ec90>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'funding': ('AFG', 'BFA', 'UKR')}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff481c60>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_admin[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f1900b0b8f0>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'nothing': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff487b80>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_national_risk[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62e4b0>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'national_risk': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff135cc0>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_population[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62d070>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'population': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff15bee0>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_operational_presence[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62db50>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'operational_presence': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff0e8640>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_conflict_event[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62eea0>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'conflict_event': ('BFA', 'COL')}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff06a2c0>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_food_prices[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62f3b0>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'food_prices': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff55ef80>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check failure on line 0 in tests.test_main.TestHAPIPipelines

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_idps[themes_to_run0] (tests.test_main.TestHAPIPipelines) with error

test-results.xml [took 0s]
Raw output
failed on setup with "TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'"
self = <tests.test_main.TestHAPIPipelines object at 0x7f18ff62ea80>
configuration = {'hdx_prod_site': {'url': 'https://data.humdata.org'}, 'hdx_demo_site': {'url': 'https://demo.data-humdata-org.ahconu.... markets', 'format': 'csv'}, 'unused_adm1': ['CIV', 'KEN'], 'unused_adm2': ['DOM', 'RUS', 'UGA'], 'adm1_only': ['SLV']}
folder = 'tests/fixtures', themes_to_run = {'idps': None}

    @pytest.fixture(scope="function")
    def pipelines(self, configuration, folder, themes_to_run):
        with HDXErrorHandler() as error_handler:
            with temp_dir(
                "TestHAPIPipelines",
                delete_on_success=True,
                delete_on_failure=False,
            ) as temp_folder:
                db_uri = "postgresql+psycopg://postgres:postgres@localhost:5432/hapitest"
                logger.info(f"Connecting to database {db_uri}")
>               with Database(
                    db_uri=db_uri,
                    recreate_schema=True,
                    prepare_fn=prepare_hapi_views,
                ) as database:

tests/test_main.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:164: in __init__
    self.prepare_results = prepare_fn()
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hapi_schema/views.py:40: in prepare_hapi_views
    views[table] = Database.prepare_view(view_params.__dict__)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/__init__.py:306: in prepare_view
    return view(**view_params)
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:61: in view
    t._columns._populate_separate_keys(
../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/sqlalchemy/sql/base.py:1973: in _populate_separate_keys
    cols = list(iter_)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

.0 = <list_iterator object at 0x7f18ff4b17b0>

    t._columns._populate_separate_keys(
>       col._make_proxy(t) for col in selectable.selected_columns
    )
E   TypeError: Column._make_proxy() missing 2 required positional arguments: 'primary_key' and 'foreign_keys'

../../../.local/share/hatch/env/virtual/hapi-pipelines/zEFzVURN/hatch-test.py3.12/lib/python3.12/site-packages/hdx/database/views.py:62: TypeError

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

16 tests found

There are 16 tests, see "Raw output" for the full list of tests.
Raw output
tests.test_main.TestHAPIPipelines ‑ test_admin[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_conflict_event[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_food_prices[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_food_security[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_funding[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_humanitarian_needs[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_idps[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_national_risk[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_operational_presence[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_population[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_poverty_rate[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_refugees_and_returnees[themes_to_run0]
tests.test_main.TestHAPIPipelines ‑ test_sector_currency[themes_to_run0]
tests.test_parse_tags ‑ test_get_gender_and_age_range
tests.test_parse_tags ‑ test_get_min_and_max_age
tests.test_process_config_defaults ‑ test_process_config_defaults