Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bufbuild/buf-examples
/ ViolationSpec
Class
ViolationSpec
protovalidate/grpc-python/finish/invoice_server_test.py:34–37 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
33
@dataclass
34
class
ViolationSpec:
35
rule_id: str
36
field_path: str
37
message: str
38
39
class
InvoiceServerTest(unittest.TestCase):
40
def
setUp(self):
Callers
10
test_invoice_id_must_be_a_uuid
Method · 0.70
test_account_id_must_be_a_uuid
Method · 0.70
test_invoice_date_must_not_have_a_time_component
Method · 0.70
test_at_least_one_item_must_be_provided
Method · 0.70
test_two_line_items_cannot_have_the_same_identifier
Method · 0.70
test_two_line_items_cannot_have_the_same_product_id_and_unit_price
Method · 0.70
test_line_item_a_line_item_cannot_have_the_same_line_item_id_and_product_id
Method · 0.70
test_line_item_line_item_id_must_be_a_uuid
Method · 0.70
test_line_item_product_id_must_be_a_uuid
Method · 0.70
test_line_item_quantity_must_be_greater_than_0
Method · 0.70
Calls
no outgoing calls
Tested by
10
test_invoice_id_must_be_a_uuid
Method · 0.56
test_account_id_must_be_a_uuid
Method · 0.56
test_invoice_date_must_not_have_a_time_component
Method · 0.56
test_at_least_one_item_must_be_provided
Method · 0.56
test_two_line_items_cannot_have_the_same_identifier
Method · 0.56
test_two_line_items_cannot_have_the_same_product_id_and_unit_price
Method · 0.56
test_line_item_a_line_item_cannot_have_the_same_line_item_id_and_product_id
Method · 0.56
test_line_item_line_item_id_must_be_a_uuid
Method · 0.56
test_line_item_product_id_must_be_a_uuid
Method · 0.56
test_line_item_quantity_must_be_greater_than_0
Method · 0.56