
    o                     N    d dl Z d dlZd dlZd dlZd Zej
                  d        Zy)    Nc                  l   t         j                  j                  t         j                  j                  t         j                  j                  t        d            d      t
        _        t        t         j                  j                  t
        j                  d      d      5 } | j                         t
        _	        ddd       t        t         j                  j                  t
        j                  d      d      5 } | j                         t
        _
        ddd       y# 1 sw Y   dxY w# 1 sw Y   yxY w)z(Load public certificate and private key.z../..z
tests/datazprivatekey.pemrbNzpublic_cert.pem)ospathjoinabspath__file__pytestdata_diropenreadprivate_key_bytespublic_cert_bytes)fhs    Nplatform/gsutil/third_party/google-auth-library-python/tests_async/conftest.pypytest_configurer      s    ggll
Xw78,FO 
bggll6??,<=t	D#%779  
E 
bggll6??,=>	E#%779  
F	E 
E	D 
F	Es   !D;D*D'*D3c                       fd}|S )zMocks a non-existing module in sys.modules.

    Additionally mocks any non-existing modules specified in the dotted path.
    c                 
   | j                  d      }g }|D ]j  }|j                  |       dj                  |      }|t        j                  vs8j                  t        j                  |t        j                                l y )N.)splitappendr   sysmodulessetitemmock	MagicMock)r   partspartialpartcurrent_modulemonkeypatchs        r   _mock_non_existent_modulez;mock_non_existent_module.<locals>._mock_non_existent_module*   sb    

3DNN4  XXg.NS[[0##CKKAQR	      )r!   r"   s   ` r   mock_non_existent_moduler%   #   s    S %$r#   )r   r   r   r
   r   fixturer%   r$   r#   r   <module>r'      s0    
 
  
- % %r#   