-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f013fb6
commit fa3838a
Showing
2 changed files
with
57 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
import pytest | ||
#boilerplate to copy the grammar ini file into the correct location | ||
#just chagne grammar_ini to the name of the grammar ini file you want copied into | ||
#unimacro user directory | ||
grammar_ini= "_brackets.ini" | ||
from conftest import make_copy_grammar_ini_fixture | ||
#grammar_ini_fixture will depend on unimacro_setup, so you dont' need to specfiy unimacro_setup | ||
#as a fixture in your tests. Though you can | ||
grammar_ini_fixture=make_copy_grammar_ini_fixture(grammar_ini) | ||
#end of boilderplate to copy the gramar ini file into correct location | ||
|
||
#Add this to unimacro_userdirectory/enx_inifiles | ||
#leave these first two samples in as documentation in test_brackets. confests docs say to look in this file for examples. | ||
def test_sample_grammar_ini_fixture1(grammar_ini_fixture): | ||
assert True | ||
|
||
#C:\Users\doug\AppData\Local\Temp\pytest-of-doug\pytest-76\test_getTopOrChild0\unimacro_user_directory\enx_inifiles | ||
def test_sample_grammar_ini_fixture2(grammar_ini_fixture,unimacro_setup): | ||
print(f"Unimacro setup sample: {unimacro_setup} grammar_ini_fixutre {grammar_ini_fixture} (should be the same)") | ||
assert True | ||
|
||
|
||
import sysconfig,sys | ||
if __name__ == "__main__": | ||
sysconfig._main() | ||
print("This is your Python system path sys.path:") | ||
print("-----------------------------------------") | ||
print(sys.path) | ||
|
||
pytest.main([f'test_brackets.py']) |