
    )Jf                         d dl mZ d dlmZ d dlmZmZ ddlmZ  edddii	           G d
 dee                      Z	dS )    )override_settings)OAuth2TestsMixin)MockedResponseTestCase   )NextCloudProvider	nextcloudSERVERzhttps://nextcloud.example.org)SOCIALACCOUNT_PROVIDERSc                   4     e Zd Zej        Zd fd	Zd Z xZS )NextCloudTestsTc                 ~    t          t          |                               |                              dd          S )N)with_refresh_tokenuiduser_id)superr   get_login_response_jsonreplace)selfr   	__class__s     r/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/allauth/socialaccount/providers/nextcloud/tests.pyr   z&NextCloudTests.get_login_response_json   s6    .$''$$8J$KKWUI&&	
    c                 "    t          dd          S )N   a  <?xml version="1.0"?>
<ocs>
 <meta>
  <status>ok</status>
  <statuscode>100</statuscode>
  <message>OK</message>
  <totalitems></totalitems>
  <itemsperpage></itemsperpage>
 </meta>
 <data>
  <enabled>1</enabled>
  <id>batman</id>
  <storageLocation>/var/www/html/data/batman</storageLocation>
  <lastLogin>1553946472000</lastLogin>
  <backend>Database</backend>
  <subadmin/>
  <quota>
   <free>1455417655296</free>
   <used>467191265</used>
   <total>1455884846561</total>
   <relative>0.03</relative>
   <quota>-3</quota>
  </quota>
  <email>batman@wayne.com</email>
  <displayname>batman</displayname>
  <phone>7351857301</phone>
  <address>BatCave, Gotham City</address>
  <website>https://batman.org</website>
  <twitter>@the_batman</twitter>
  <groups>
   <element>admin</element>
  </groups>
  <language>fr</language>
  <locale>fr_FR</locale>
  <backendCapabilities>
   <setDisplayName>1</setDisplayName>
   <setPassword>1</setPassword>
  </backendCapabilities>
 </data>
</ocs>
)r   )r   s    r   get_mocked_responsez"NextCloudTests.get_mocked_response   s    (+
 +
 +	
r   )T)	__name__
__module____qualname__r   idprovider_idr   r   __classcell__)r   s   @r   r   r   	   sV         $&K
 
 
 
 
 
,
 ,
 ,
 ,
 ,
 ,
 ,
r   r   N)
django.test.utilsr   allauth.socialaccount.testsr   allauth.testsr   r   providerr   r    r   r   <module>r'      s    / / / / / / 8 8 8 8 8 8 2 2 2 2 2 2 2 2 ' ' ' ' ' ' (85T*UV  6
 6
 6
 6
 6
%x 6
 6
 6
 6
 6
r   