Skip to content

Commit

Permalink
upgrade python development requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
David Chaiken committed Dec 29, 2023
1 parent 8d66a75 commit 6b6aaed
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
10 changes: 5 additions & 5 deletions python/dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-r requirements.txt

pytest==7.1.2
requests-mock~=1.8.0
black==22.3.0
flake8==3.8.4
isort==5.6.4
pytest==7.2.0
requests-mock~=1.9.3
black==23.12.0
flake8==5.0.4
isort==5.13.2
1 change: 0 additions & 1 deletion python/scripts/copy_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def copy_pin(pin, pin_data, target_board_id, target_section_id=None):
boards = [source_board_data]

for source_board_data in boards:

print("source board:")
Board.print_summary(source_board_data)
source_board.board_id = source_board_data["id"]
Expand Down
1 change: 0 additions & 1 deletion python/scripts/delete_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def main(argv=[]):

deletion_board = Board(None, api_config, access_token) # board_id set in loop below
for board_data in boards:

# one final check before deletion
Board.print_summary(board_data)
if "yes" != input_one_of(
Expand Down
1 change: 0 additions & 1 deletion python/tests/src/test_access_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def test_access_token_from_environment(self):
@mock.patch("os.chmod")
@mock.patch("builtins.open")
def test_access_token_from_json(self, mock_open, mock_chmod):

mock_api_config = mock.Mock()
mock_api_config.app_id = "test-app-id"
mock_api_config.app_secret = "test-app-secret"
Expand Down
1 change: 0 additions & 1 deletion python/tests/src/test_api_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class ApiConfigTest(unittest.TestCase):

mock_os_environ_minimal = {
"PINTEREST_APP_ID": "test-app-id",
"PINTEREST_APP_SECRET": "test-app-secret",
Expand Down
1 change: 0 additions & 1 deletion python/tests/src/test_user_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def handle_request(self):
def test_http_server_handler(
self, mock_super, mock_send_response, mock_send_header, mock_end_headers
):

mock_api_config = mock.Mock()
mock_api_config.landing_uri = "test-landing-uri"
mock_api_config.verbosity = 2
Expand Down

0 comments on commit 6b6aaed

Please sign in to comment.