
    j                    @    d dl mZ d dlmZ d dlZd dlmZ ddZddZy)    )annotations)PathN)load_settingsc                F   | dz  }|j                          |dz  j                  d       t        |i       }d|j                  j                  j                         v sJ |j                  j                  j                         j                  |j                               rJ y )Nrepopyproject.toml[project]
name='demo'
	repo_rootenvironzjarvis_runtime/finance-system)mkdir
write_textr   runtime_pathsbase_diras_posix
startswith)tmp_pathr   settingss      tests/unit/test_settings.py!test_runtime_default_outside_repor   
   s    fDJJL	(()CDtR8H*h.D.D.M.M.V.V.XXXX%%..779DDT]]_UUUU    c           	         | dz  }|j                          |dz  j                  d       t        j                  t        d      5  t        |dt        |dz        i       d d d        y # 1 sw Y   y xY w)	Nr   r   r	   zoutside the Git repository)matchJARVIS_FINANCE_RUNTIME_DIRruntimer
   )r   r   pytestraises
ValueErrorr   str)r   r   s     r   #test_runtime_inside_repo_is_blockedr       sn    fDJJL	(()CD	z)E	F e/KSQUXaQaMb.cde e es   A**A3)r   r   returnNone)	
__future__r   pathlibr   r   jarvis_finance.config.settingsr   r   r     r   r   <module>r'      s    "   8Ver   