Skip to content

Commit

Permalink
Sleep test
Browse files Browse the repository at this point in the history
  • Loading branch information
infeeeee committed Sep 17, 2024
1 parent 62e2cc9 commit 0af2b04
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_noco.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ def setUpModule():
api_key=CONFIG["NOCO_API_KEY"])
TestData.base = TestData.noco.get_base(base_id=CONFIG["NOCO_BASE_ID"])

[t.delete() for t in TestData.base.get_tables()]


class TestData:
noco: NocoDB
base: Base
table_nr: int = 0

@classmethod
def setUpClass(cls) -> None:
sleep(10)

@classmethod
def get_new_table(cls) -> Table:
tablename = cls.base.title + str(TestData.table_nr)
Expand All @@ -52,10 +58,6 @@ def get_new_table(cls) -> Table:

class Test01Base(TestData, unittest.TestCase):

@classmethod
def setUpClass(cls) -> None:
[t.delete() for t in cls.base.get_tables()]

def test_get_base(self):
# get_bases
# get_base_by_title
Expand Down Expand Up @@ -127,7 +129,7 @@ def test_empty_table(self):
self.table.duplicate()

sleep(3)

duplicates = self.table.get_duplicates()

self.assertEqual(len(duplicates), 1)
Expand Down

0 comments on commit 0af2b04

Please sign in to comment.