Implement a ShoppingCart class in the /app/ directory that supports the following functionality:
Attributes:
The ShoppingCart class should maintain a list of items, where each item is represented as a dictionary with at least the following keys: name (string), price (float), and quantity (integer).
Methods:
add_item(name: str, price: float, quantity: int): Adds an item to the shopping cart. If the item already exists, it should update the quantity.
remove_item(name: str): Removes an item from the shopping cart. If the item does not exist, it should not raise an error but should do nothing.
update_item(name: str, quantity: int): Updates the quantity of an existing item. If the item does not exist, it should not raise an error but should do nothing.
get_total() -> float: Returns the total price of all items in the cart, calculated by summing the product of the price and quantity of each item.
clear_cart(): Removes all items from the shopping cart.
Edge Cases:
Ensure that adding an item with a quantity of zero should remove the item from the cart.
Ensure that the quantity cannot be negative when adding or updating an item; if a negative quantity is provided, it should be ignored.
Testing:
The implementation should pass the provided tests, which verify the correctness of the methods, including adding, removing, updating items, calculating the total, and clearing the cart.
Once implemented, the ShoppingCart class should be placed in a file named shopping_cart.py within the /app/ directory.