Open kdaily opened 6 years ago
runs via nosetests -vs tests/integration/test_json2synapse.py:check_keys
But I'll have to change it to pytest.
OK! need to figure out how to register it in the appropriate way so that when new tests are added, all tests can be run via just pytest
. Thanks!
Tests fail for me unless I run them in the directory they live in. I think the root of the problem is the relative import of tests/sampleFile.csv and tests/sampleMeta.csv. Should we just include the contents of these files in conftest.py? I don't foresee them getting very large.
We need to make a conversion to not push code to master if the tests fail on py27 and py3
I strongly agree, of course. Luckily for now it's just a file dependency issue and not the actual methods breaking. I'll work on getting that fixed today.
@teslajoy Is the test project at a point where it can be "set in stone" for consistent testing or should we just pull SAMPLE_FILE and SAMPLE_META from Github for now?
Pulling from github's master for now.
Much better, just have to reopen this issue since not all tests are passing yet.
It looks like the tests are all passing in python 3 but the above tests fail for python2.7
I tested two hypothesis: scope issues with pytest conftest: I can get the syn, entities, sampleFiles, etc. so this is not the issue. incompatibility of pandas and pytest version: not true either. I see the df
Next up: uploading a file to synapse fails and returns HTTP 200 instead of ERROR we get FAILED via the pandas.testing. I think the files can't be stored and df doesn't exists.
not sure why py3 upload to synapse works.