From 147d3733bf068d8c71a901b8a0e31cfda5c4a687 Mon Sep 17 00:00:00 2001 From: 0xArty Date: Sun, 16 Apr 2023 16:03:22 +0100 Subject: [PATCH 1/2] Change ci to pytest --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 366aaf67..39f3aea9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Run unittest tests with coverage run: | - coverage run --source=autogpt -m unittest discover tests + pytest --cov=autogpt --without-integration --without-slow-integration - name: Generate coverage report run: | From 955a5b0a4357802a8142585ad78105f6342738ad Mon Sep 17 00:00:00 2001 From: 0xArty Date: Sun, 16 Apr 2023 16:13:16 +0100 Subject: [PATCH 2/2] Marked local chache tests as integration tests as they require api keys --- tests/local_cache_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/local_cache_test.py b/tests/local_cache_test.py index fa596320..bb108626 100644 --- a/tests/local_cache_test.py +++ b/tests/local_cache_test.py @@ -4,6 +4,8 @@ import os import sys import unittest +import pytest + from autogpt.memory.local import LocalCache @@ -21,6 +23,7 @@ def mock_config() -> dict: ) +@pytest.mark.integration_test class TestLocalCache(unittest.TestCase): """Tests for LocalCache class"""