Skip to content

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noah-paige committed Jun 28, 2024
1 parent bb111c4 commit 4a25243
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CatalogIndexerTask:
"""

@classmethod
def index_objects(cls, engine, with_deletes):
def index_objects(cls, engine, with_deletes='False'):
try:
indexed_object_uris = []
with engine.scoped_session() as session:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from dataall.modules.catalog.tasks.catalog_indexer_task import index_objects
from dataall.modules.catalog.tasks.catalog_indexer_task import CatalogIndexerTask
from dataall.modules.s3_datasets.db.dataset_models import DatasetTable, S3Dataset


Expand Down Expand Up @@ -54,6 +54,6 @@ def test_catalog_indexer(db, org, env, sync_dataset, table, mocker):
mocker.patch(
'dataall.modules.s3_datasets.indexers.dataset_indexer.DatasetIndexer.upsert', return_value=sync_dataset
)
indexed_objects_counter = index_objects(engine=db)
indexed_objects_counter = CatalogIndexerTask.index_objects(engine=db)
# Count should be One table + One Dataset = 2
assert indexed_objects_counter == 2

0 comments on commit 4a25243

Please sign in to comment.