DiscoursePublishTest S

Total Complexity 36
Dependencies 4
Dependents 0
Total lines 748
Lines of code 438
Logical lines of code 246
Comment lines 200
Methods 29
Properties 5

Methods 29

Method Rating Maintainability Complexity Lines of code
response_body_json()
S
53 3 25
initialize_static_variables()
S
46 1 45
build_response()
S
51 2 30
mock_remote_post()
S
60 3 14
clear_logs()
S
65 3 9
test_sync_to_discourse_when_updating_with_featured_link()
S
50 1 29
test_sync_to_discourse_when_updating_with_deleted_topic()
S
50 1 27
test_sync_to_discourse_pin_topic()
S
51 1 27
test_sync_to_discourse_when_updating_with_direct_db_publication_flags()
S
53 1 22
test_sync_to_discourse_when_creating_with_embed_error()
S
53 1 21
test_sync_to_discourse_when_updating()
S
54 1 20
test_sync_to_discourse_when_creating_with_enqueued_post()
S
54 1 20
test_sync_to_discourse_when_creating_with_category_error()
S
54 1 20
test_sync_to_discourse_when_creating_with_response_body_error()
S
55 1 19
test_sync_to_discourse_when_creating_with_direct_db_publication_flags()
S
55 1 18
test_sync_to_discourse_when_creating()
S
56 1 16
test_remote_post_failed_to_connect()
S
62 1 12
build_notice()
S
79 1 3
response_body_file()
S
78 1 3
get_last_log()
S
69 1 6
setUpBeforeClass()
S
80 1 3
build_body_error()
S
75 1 4
build_post_error()
S
75 1 4
mock_remote_post_success()
S
68 1 7
test_remote_post_unprocessable()
S
64 1 9
test_remote_post_forbidden()
S
64 1 9
setUp()
S
70 1 6
tearDown()
S
77 1 4
test_remote_post_success()
S
70 1 6