Skip to content

Commit 70e86da

Browse files
committed
Fix publishing tests
1 parent 98ffe0c commit 70e86da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contentcuration/contentcuration/tests/utils/test_publish.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_versioned_database_exists(self):
6363
with open(self.unversioned_db_path, "w") as f:
6464
f.write(unversioned_db_content)
6565

66-
ensure_versioned_database_exists(self.channel)
66+
ensure_versioned_database_exists(self.channel.id, self.channel.version)
6767

6868
with open(self.versioned_db_path) as f:
6969
read_versioned_content = f.read()
@@ -75,7 +75,7 @@ def test_versioned_database_does_not_exist(self):
7575
with open(self.unversioned_db_path, "w") as f:
7676
f.write(unversioned_db_content)
7777

78-
ensure_versioned_database_exists(self.channel)
78+
ensure_versioned_database_exists(self.channel.id, self.channel.version)
7979

8080
with open(self.versioned_db_path) as f:
8181
read_versioned_content = f.read()
@@ -91,4 +91,4 @@ def test_not_published(self):
9191
)
9292

9393
with self.assertRaises(ValueError):
94-
ensure_versioned_database_exists(self.channel)
94+
ensure_versioned_database_exists(self.channel.id, self.channel.version)

0 commit comments

Comments
 (0)