-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean organic data before running integ tests
- Loading branch information
1 parent
f9fecd6
commit 4a72e82
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Delete all non-essential organic data from test user | ||
""" | ||
|
||
from pinterest.organic.boards import Board | ||
from integration_tests.config import DEFAULT_BOARD_ID | ||
|
||
def test_delete_organic_data(): | ||
""" | ||
Delete organic boards from default client | ||
""" | ||
all_boards, _ = Board.get_all() | ||
for board in all_boards: | ||
if board.id == DEFAULT_BOARD_ID: | ||
continue | ||
Board.delete(board_id=board.id) | ||
|
||
assert len(Board.get_all()[0]) == 1 |