PyPtt 2.3.12__tar.gz → 2.3.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyptt-2.3.12 → pyptt-2.3.13}/PKG-INFO +1 -1
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/__init__.py +1 -1
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt.egg-info/PKG-INFO +1 -1
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_del_post.py +5 -3
- {pyptt-2.3.12 → pyptt-2.3.13}/LICENSE +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/PTT.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_bucket.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_call_status.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_change_pw.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_comment.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_del_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_board_info.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_board_list.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_bottom_post_list.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_favourite_board.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_newest_index.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_post_index.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_post_list.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_time.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_user.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_get_waterball.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_give_money.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_has_new_mail.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_loginout.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_mail.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_mark_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_reply_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_search_user.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_set_board_title.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_set_signature_file.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_api_util.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_uao/LICENSE +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_uao/__init__.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_uao/b2u.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/_uao/u2b.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/api_server.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/check_value.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/command.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/config.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/connect_core.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/data_type.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/exceptions.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/i18n.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/lang_en_US.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/lang_zh_TW.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/lib_util.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/log.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/screens.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/service.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt/ssl_config.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt.egg-info/SOURCES.txt +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt.egg-info/dependency_links.txt +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt.egg-info/requires.txt +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/PyPtt.egg-info/top_level.txt +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/README.md +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/pyproject.toml +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/setup.cfg +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/setup.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_backup_effective.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_backup_param.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_board_setting_flow.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_bucket.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_change_pw.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_comment.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_connect_core_timeout.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_del_post_unit.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_exceptions.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_fast_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_board_info.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_board_info_parser.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_board_list.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_bottom_post_list.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_content_formula.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_favourite_boards.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_mail.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_newest_index.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_post_list.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_post_list_parser.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_post_parser.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_time.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_user.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_get_waterball.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_give_money.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_half_dead_connection.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_i18n.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_incremental_parity.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_init.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_logger.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_login_logout.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_mail_send_and_del.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_main_menu_status_bar.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_mark_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_new_screen_fixes.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_parse_query_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_post_anonymous.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_pyte_parity.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_reply_post.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_search_user.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_service.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_set_board_title.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_set_signature_file.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_status_line.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_uao_codec.py +0 -0
- {pyptt-2.3.12 → pyptt-2.3.13}/tests/test_vt100_parser.py +0 -0
|
@@ -212,7 +212,7 @@ def test_own_post_with_bad_post_type_raises(ptt_bots):
|
|
|
212
212
|
prove the own-post branch of the check works. PyPttMod (LOCALHOST-only
|
|
213
213
|
bootstrap board, moderated by pypttbot1) lets a real moderator delete
|
|
214
214
|
their own post and hit that branch specifically."""
|
|
215
|
-
ptt1_bot
|
|
215
|
+
ptt1_bot = ptt_bots[0]
|
|
216
216
|
if ptt1_bot.host != PyPtt.HOST.LOCALHOST:
|
|
217
217
|
pytest.skip('needs a board the bot actually moderates; only the LOCALHOST '
|
|
218
218
|
'bootstrap provisions one (PyPttMod, moderated by pypttbot1)')
|
|
@@ -234,7 +234,7 @@ def test_own_post_with_bad_post_type_raises(ptt_bots):
|
|
|
234
234
|
|
|
235
235
|
def test_bad_post_other_without_reason_raises(ptt_bots):
|
|
236
236
|
"""BadPostType.OTHER requires bad_post_reason to be supplied."""
|
|
237
|
-
ptt1_bot
|
|
237
|
+
ptt1_bot = ptt_bots[0]
|
|
238
238
|
if ptt1_bot.host != PyPtt.HOST.LOCALHOST:
|
|
239
239
|
pytest.skip('real PTT two-host setup cannot exercise this (poster is on PTT2, '
|
|
240
240
|
'board lives on PTT1); run against local imageptt (PTT_HOST=LOCALHOST)')
|
|
@@ -245,6 +245,7 @@ def test_bad_post_other_without_reason_raises(ptt_bots):
|
|
|
245
245
|
if not util.is_primary_host(ptt1_bot, ptt_bots):
|
|
246
246
|
pytest.skip('MOD_BOARD is moderated by the primary bot')
|
|
247
247
|
|
|
248
|
+
ptt2_bot = ptt_bots[1]
|
|
248
249
|
board = config.MOD_BOARD
|
|
249
250
|
title = f"PyPtt BadPost Other Test {int(time.time())}"
|
|
250
251
|
post_aid = _post_and_find_aid(ptt2_bot, board, title)
|
|
@@ -275,7 +276,7 @@ def test_bad_post(ptt_bots):
|
|
|
275
276
|
needs TEST_USER (the moderator-owned MOD_BOARD's non-moderator poster)
|
|
276
277
|
to post. Both articles below are posted up front, before either
|
|
277
278
|
bad-post call (and its posting ban) can land."""
|
|
278
|
-
ptt1_bot
|
|
279
|
+
ptt1_bot = ptt_bots[0]
|
|
279
280
|
if ptt1_bot.host != PyPtt.HOST.LOCALHOST:
|
|
280
281
|
pytest.skip('real PTT two-host setup cannot exercise this; run against local imageptt')
|
|
281
282
|
|
|
@@ -285,6 +286,7 @@ def test_bad_post(ptt_bots):
|
|
|
285
286
|
if not util.is_primary_host(ptt1_bot, ptt_bots):
|
|
286
287
|
pytest.skip('MOD_BOARD is moderated by the primary bot')
|
|
287
288
|
|
|
289
|
+
ptt2_bot = ptt_bots[1]
|
|
288
290
|
board = config.MOD_BOARD
|
|
289
291
|
title_ad = f"PyPtt Bad Post AD Test {int(time.time())}"
|
|
290
292
|
title_other = f"PyPtt Bad Post OTHER Test {int(time.time())}"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|