lp:~pfalcon/linaro-license-protection/revamp-buildinfo-tests
- Get this branch:
- bzr branch lp:~pfalcon/linaro-license-protection/revamp-buildinfo-tests
Branch merges
- Данило Шеган (community): Approve
-
Diff: 42 lines (+17/-5)2 files modifiedlicense_protected_downloads/tests/test_buildinfo.py (+16/-5)
license_protected_downloads/tests/testserver_root/build-info/no-build-info/file (+1/-0)
Branch information
Recent revisions
- 163. By Paul Sokolovsky
-
Test separately for querying subdir access and access when no BUILD-INFO.txt.
Previous test_readFile_
nonFile( ) was really confusing, there're two separate
cases to test for.Also, make conclusions from previous wrong test patch due to presence of stray
BUILD-INFO.txt on local system: the real problem is not using actual dirs for
testdata, but trying to (ab)use source files directory as testdata: don't do
that, have each for its own purpose (source directory may contain arbitrary
files during development, but test corpus is just that). - 162. By Paul Sokolovsky
-
Fix test_apply_to_dir: it is explicitly allowed to apply test to a dir.
BuildInfo class has code to handle that case.
- 161. By Paul Sokolovsky
-
Rename test_readFile_* -> test_apply_to_* to be up to date with semantics.
These tests no longer test just readFile() method, they test application
of BuildInfo class to a filesystem object. Also, if we test against
directory, call it such, and not "non-file", and add extra check that intended
name is indeed directory in the current dir. - 159. By Paul Sokolovsky
-
Explicitly mention current version of the BUILD-INFO format.
And why do we have it at 0.1 still?
- 158. By Paul Sokolovsky
-
Confusing usage of "may" and "required", replace by "must".
According to source code.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)