File tree Expand file tree Collapse file tree 7 files changed +85
-17
lines changed Expand file tree Collapse file tree 7 files changed +85
-17
lines changed Original file line number Diff line number Diff line change @@ -2000,9 +2000,21 @@ components:
2000
2000
patch :
2001
2001
$ref : ' #/components/schemas/PatchEmbedded'
2002
2002
previous_delegate :
2003
- $ref : ' #/components/schemas/UserEmbedded'
2003
+ title : Previous delegate
2004
+ type :
2005
+ - ' null'
2006
+ - ' object'
2007
+ oneOf :
2008
+ - type : ' null'
2009
+ - $ref : ' #/components/schemas/UserEmbedded'
2004
2010
current_delegate :
2005
- $ref : ' #/components/schemas/UserEmbedded'
2011
+ title : Current delegate
2012
+ type :
2013
+ - ' null'
2014
+ - ' object'
2015
+ oneOf :
2016
+ - type : ' null'
2017
+ - $ref : ' #/components/schemas/UserEmbedded'
2006
2018
EventCheckCreated :
2007
2019
title : Check create event
2008
2020
description : |
Original file line number Diff line number Diff line change @@ -2078,9 +2078,21 @@ components:
2078
2078
patch:
2079
2079
$ref: '#/components/schemas/PatchEmbedded'
2080
2080
previous_delegate:
2081
- $ref: '#/components/schemas/UserEmbedded'
2081
+ title: Previous delegate
2082
+ type:
2083
+ - 'null'
2084
+ - 'object'
2085
+ oneOf:
2086
+ - type: 'null'
2087
+ - $ref: '#/components/schemas/UserEmbedded'
2082
2088
current_delegate:
2083
- $ref: '#/components/schemas/UserEmbedded'
2089
+ title: Current delegate
2090
+ type:
2091
+ - 'null'
2092
+ - 'object'
2093
+ oneOf:
2094
+ - type: 'null'
2095
+ - $ref: '#/components/schemas/UserEmbedded'
2084
2096
EventCheckCreated:
2085
2097
title: Check create event
2086
2098
description: |
Original file line number Diff line number Diff line change @@ -1608,9 +1608,21 @@ components:
1608
1608
patch :
1609
1609
$ref : ' #/components/schemas/PatchEmbedded'
1610
1610
previous_delegate :
1611
- $ref : ' #/components/schemas/UserEmbedded'
1611
+ title : Previous delegate
1612
+ type :
1613
+ - ' null'
1614
+ - ' object'
1615
+ oneOf :
1616
+ - type : ' null'
1617
+ - $ref : ' #/components/schemas/UserEmbedded'
1612
1618
current_delegate :
1613
- $ref : ' #/components/schemas/UserEmbedded'
1619
+ title : Current delegate
1620
+ type :
1621
+ - ' null'
1622
+ - ' object'
1623
+ oneOf :
1624
+ - type : ' null'
1625
+ - $ref : ' #/components/schemas/UserEmbedded'
1614
1626
EventCheckCreated :
1615
1627
title : Check create event
1616
1628
description : |
Original file line number Diff line number Diff line change @@ -1635,9 +1635,21 @@ components:
1635
1635
patch :
1636
1636
$ref : ' #/components/schemas/PatchEmbedded'
1637
1637
previous_delegate :
1638
- $ref : ' #/components/schemas/UserEmbedded'
1638
+ title : Previous delegate
1639
+ type :
1640
+ - ' null'
1641
+ - ' object'
1642
+ oneOf :
1643
+ - type : ' null'
1644
+ - $ref : ' #/components/schemas/UserEmbedded'
1639
1645
current_delegate :
1640
- $ref : ' #/components/schemas/UserEmbedded'
1646
+ title : Current delegate
1647
+ type :
1648
+ - ' null'
1649
+ - ' object'
1650
+ oneOf :
1651
+ - type : ' null'
1652
+ - $ref : ' #/components/schemas/UserEmbedded'
1641
1653
EventCheckCreated :
1642
1654
title : Check create event
1643
1655
description : |
Original file line number Diff line number Diff line change @@ -1837,9 +1837,21 @@ components:
1837
1837
patch :
1838
1838
$ref : ' #/components/schemas/PatchEmbedded'
1839
1839
previous_delegate :
1840
- $ref : ' #/components/schemas/UserEmbedded'
1840
+ title : Previous delegate
1841
+ type :
1842
+ - ' null'
1843
+ - ' object'
1844
+ oneOf :
1845
+ - type : ' null'
1846
+ - $ref : ' #/components/schemas/UserEmbedded'
1841
1847
current_delegate :
1842
- $ref : ' #/components/schemas/UserEmbedded'
1848
+ title : Current delegate
1849
+ type :
1850
+ - ' null'
1851
+ - ' object'
1852
+ oneOf :
1853
+ - type : ' null'
1854
+ - $ref : ' #/components/schemas/UserEmbedded'
1843
1855
EventCheckCreated :
1844
1856
title : Check create event
1845
1857
description : |
Original file line number Diff line number Diff line change @@ -2000,9 +2000,21 @@ components:
2000
2000
patch :
2001
2001
$ref : ' #/components/schemas/PatchEmbedded'
2002
2002
previous_delegate :
2003
- $ref : ' #/components/schemas/UserEmbedded'
2003
+ title : Previous delegate
2004
+ type :
2005
+ - ' null'
2006
+ - ' object'
2007
+ oneOf :
2008
+ - type : ' null'
2009
+ - $ref : ' #/components/schemas/UserEmbedded'
2004
2010
current_delegate :
2005
- $ref : ' #/components/schemas/UserEmbedded'
2011
+ title : Current delegate
2012
+ type :
2013
+ - ' null'
2014
+ - ' object'
2015
+ oneOf :
2016
+ - type : ' null'
2017
+ - $ref : ' #/components/schemas/UserEmbedded'
2006
2018
EventCheckCreated :
2007
2019
title : Check create event
2008
2020
description : |
Original file line number Diff line number Diff line change 6
6
from django .test import override_settings
7
7
from django .urls import reverse
8
8
from rest_framework import status
9
- from rest_framework .test import APITestCase
10
-
11
9
12
10
from patchwork .models import Event
13
11
from patchwork .tests .api import utils
21
19
from patchwork .tests .utils import create_state
22
20
23
21
24
- # FIXME(stephenfin: This should inherit from 'utils.APITestCase', but we need
25
- # to fix our schema to work with recent versions of openapi_core
26
22
@override_settings (ENABLE_REST_API = True )
27
- class TestEventAPI (APITestCase ):
23
+ class TestEventAPI (utils . APITestCase ):
28
24
@staticmethod
29
25
def api_url (version = None ):
30
26
kwargs = {}
You can’t perform that action at this time.
0 commit comments