|
@@ -121,6 +121,16 @@ class ProjectOwnershipEndpointTestCase(APITestCase):
|
|
|
assert resp.status_code == 200
|
|
|
assert resp.data["autoAssignment"] == "Turn off Auto-Assignment"
|
|
|
|
|
|
+ # Test that we can reset autoAssignment for updating in non-UI use case
|
|
|
+ resp = self.client.put(self.path, {"autoAssignment": "Turn off Auto-Assignment"})
|
|
|
+ assert resp.status_code == 200
|
|
|
+ assert resp.data["fallthrough"] is False
|
|
|
+ assert resp.data["autoAssignment"] == "Turn off Auto-Assignment"
|
|
|
+ assert resp.data["raw"] == "*.js admin@localhost #tiger-team"
|
|
|
+ assert resp.data["dateCreated"] is not None
|
|
|
+ assert resp.data["lastUpdated"] is not None
|
|
|
+ assert resp.data["codeownersAutoSync"] is False
|
|
|
+
|
|
|
def test_audit_log_entry(self):
|
|
|
resp = self.client.put(self.path, {"autoAssignment": "Auto Assign to Issue Owner"})
|
|
|
assert resp.status_code == 200
|