Skip to content

Commit

Permalink
fixed tests, updated locked requirements without hashes for now
Browse files Browse the repository at this point in the history
  • Loading branch information
darvid committed Dec 22, 2016
1 parent 4617cc1 commit 792e5a8
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 203 deletions.
10 changes: 10 additions & 0 deletions docs/source/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,16 @@ reqwire build

Builds one or more tags.

* ``reqwire build -a -- [pip-compile options]...``

Passes all additional options and arguments to **pip-compile**.

For instance, to build requirements with hashes:

.. code-block:: shell
$ reqwire build -a -- --generate-hashes
reqwire init
~~~~~~~~~~~~

Expand Down
62 changes: 16 additions & 46 deletions requirements/lck/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,20 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes --output-file /tmp/tmpxsbctovn requirements/src/docs.in
# pip-compile --output-file /tmp/tmpDXwV7v requirements/src/docs.in
#
alabaster==0.7.9 \
--hash=sha256:47afd43b08a4ecaa45e3496e139a193ce364571e7e10c6a87ca1a4c57eb7ea08 \
--hash=sha256:d3e64a74919373d6d4d1d36bd717206584cb64cbb0532dfce3bc2081cba6817b # via sphinx
babel==2.3.4 \
--hash=sha256:3318ed2960240d61cbc6558858ee00c10eed77a6508c4d1ed8e6f7f48399c975 \
--hash=sha256:c535c4403802f6eb38173cd4863e419e2274921a01a8aad8a5b497c131c62875 # via sphinx
docutils==0.13.1 \
--hash=sha256:718c0f5fb677be0f34b781e04241c4067cbd9327b66bdd8e763201130f5175be \
--hash=sha256:cb3ebcb09242804f84bdbf0b26504077a054da6772c6f4d625f335cc53ebf94d # via sphinx
imagesize==0.7.1 \
--hash=sha256:0ab2c62b87987e3252f89d30b7cedbec12a01af9274af9ffa48108f2c13c6062 \
--hash=sha256:6ebdc9e0ad188f9d1b2cdd9bc59cbe42bf931875e829e7a595e6b3abdc05cdfb # via sphinx
Jinja2==2.8 \
--hash=sha256:1cc03ef32b64be19e0a5b54578dd790906a34943fe9102cfdae0d4495bd536b4 \
--hash=sha256:bc1ff2ff88dbfacefde4ddde471d1417d3b304e8df103a7a9437d47269201bf4 # via sphinx
MarkupSafe==0.23 \
--hash=sha256:a4ec1aff59b95a14b45eb2e23761a0179e98319da5a7eb76b56ea8cdc7b871c3 # via jinja2
pockets==0.3.1 \
--hash=sha256:7c1246b3a5a08e85256af13fa239f5bf8dc9bf78b690472e02702b341dad4a78 \
--hash=sha256:ec7d1aa5c4b677e2ad9c0bf1f86a8cac67946f9919e4cc958ccb872b44315bd0 # via sphinxcontrib-napoleon
Pygments==2.1.3 \
--hash=sha256:485602129949b14247e8b124d28af4654dffbd076537c4a9c44a538a2c1755b7 \
--hash=sha256:88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81 # via sphinx
pytz==2016.10 \
--hash=sha256:7016b2c4fa075c564b81c37a252a5fccf60d8964aa31b7f5eae59aeb594ae02b \
--hash=sha256:9a43e20aa537cfad8fe7a1715165c91cb4a6935d40947f2d070e4c80f2dcd22b \
--hash=sha256:a1ea35e87a63c7825846d5b5c81d23d668e8a102d3b1b465ce95afe1b3a2e065 \
--hash=sha256:aafbf066975fe217ed49d7d197b26903d3b43e9ca2aa6ba0a211081f13c41917 # via babel
requests==2.12.4 \
--hash=sha256:000748df49e087784441b2621c50fb81046c5c8e80e0d91674ffad65b9e13844 \
--hash=sha256:ed98431a0631e309bb4b63c81d561c1654822cb103de1ac7b47e45c26be7ae34 # via sphinx
six==1.10.0 \
--hash=sha256:0ff78c403d9bccf5a425a6d31a12aa6b47f1c21ca4dc2573a7e2f32a97335eb1 \
--hash=sha256:105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a # via pockets, sphinx, sphinxcontrib-napoleon
snowballstemmer==1.2.1 \
--hash=sha256:919f26a68b2c17a7634da993d91339e288964f93c274f1343e3bbbe2096e1128 \
--hash=sha256:9f3bcd3c401c3e862ec0ebe6d2c069ebc012ce142cce209c098ccb5b09136e89 # via sphinx
sphinx-md-theme==0.1a2 \
--hash=sha256:f8350430cc594cf305ed44f357d1296d7920b8f3f6a28e51a8bad45200447882
Sphinx==1.5 \
--hash=sha256:1c52ac7696c4d37bb7bc59c58df81756928816e88624ba625f12082a9e9eb8f9 \
--hash=sha256:63997e0c9216185ae7b583a5e87a0619a172171b840d70b9ff7153f99a3d7fbf
sphinxcontrib-napoleon==0.6.0 \
--hash=sha256:45aeb259eeecd6a641fcea45adb0a0268bbe92117ab52e7c919cd6bfc36fe548 \
--hash=sha256:7ea8d97e9b4342613e73c55bdeee910cea32235a6cb30b51a8ad0390890d1a2f
alabaster==0.7.9 # via sphinx
babel==2.3.4 # via sphinx
docutils==0.13.1 # via sphinx
imagesize==0.7.1 # via sphinx
Jinja2==2.8 # via sphinx
MarkupSafe==0.23 # via jinja2
pockets==0.3.1 # via sphinxcontrib-napoleon
Pygments==2.1.3 # via sphinx
pytz==2016.10 # via babel
requests==2.12.4 # via sphinx
six==1.10.0 # via pockets, sphinx, sphinxcontrib-napoleon
snowballstemmer==1.2.1 # via sphinx
sphinx-md-theme==0.1a2
Sphinx==1.5
sphinxcontrib-napoleon==0.6.0
62 changes: 17 additions & 45 deletions requirements/lck/main.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,49 +4,21 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes --output-file /tmp/tmpsrn_s_ho requirements/src/main.in
# pip-compile --output-file /tmp/tmpT0qML_ requirements/src/main.in
#
atomicwrites==1.1.5 \
--hash=sha256:240831ea22da9ab882b551b31d4225591e5e447a68c5e188db5b89ca1d487585 \
--hash=sha256:a24da68318b08ac9c9c45029f4a10371ab5b20e4226738e150e6e7c571630ae6
attrdict==2.0.0 \
--hash=sha256:86aeb6d3809e0344409f8148d7cac9eabce5f0b577c160b5e90d10df3f8d2ad3 # via biome
biome==0.1.3 \
--hash=sha256:eb700ab3469225d645f8a35ee7873def307572253dfe0b7bdd38b32c7737c48c
click==6.6 \
--hash=sha256:cc6a19da8ebff6e7074f731447ef7e112bd23adf3de5c597cf9989f2fd8defe9 \
--hash=sha256:fcf697e1fd4b567d817c69dab10a4035937fe6af175c05fd6806b69f74cbc6c4 # via pip-tools
emoji==0.3.9 \
--hash=sha256:bccff5f7aff6de2986fe9e21575e7c5c46cbb587cf2597c54989034cad60e5a6
enum34==1.1.6 \
--hash=sha256:2d81cbbe0e73112bdfe6ef8576f2238f2ba27dd0d55752a776c41d38b7da2850 \
--hash=sha256:644837f692e5f550741432dd3f223bbb9852018674981b1664e5dc339387588a \
--hash=sha256:8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1
fasteners==0.14.1 \
--hash=sha256:427c76773fe036ddfa41e57d89086ea03111bbac57c55fc55f3006d027107e18 \
--hash=sha256:564a115ff9698767df401efca29620cbb1a1c2146b7095ebd304b79cc5807a7c
first==2.0.1 \
--hash=sha256:3bb3de3582cb27071cfb514f00ed784dc444b7f96dc21e140de65fe00585c95e \
--hash=sha256:41d5b64e70507d0c3ca742d68010a76060eea8a3d863e9b5130ab11a4a91aa0e # via pip-tools
monotonic==1.2 \
--hash=sha256:668088baea217e1e89edecd12c9a913ab4678419ad4eca378dcef1e4059a44f3 \
--hash=sha256:c0e1ceca563ca6bb30b0fb047ee1002503ae6ad3585fc9c6af37a8f77ec274ba # via fasteners
ordered-set==2.0.1 \
--hash=sha256:55567f094481ba204ffede0117ab563e19af050c7cbf33a9a23292b8cb2b0a0e
pathlib2==2.1.0 \
--hash=sha256:24e0b33e1333b55e73c9d1e9a8342417d519f7789a9d3b440f4acd00ea45157e \
--hash=sha256:deb3a960c1d55868dfbcac98432358b92ba89d95029cddd4040db1f27405055c
pathlib==1.0.1 \
--hash=sha256:6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f # via biome
pip-tools==1.8.0 \
--hash=sha256:0b638dbb88ba7486dbdae2b94d9170f9e641799c8019ed1c1f07ec97ad6b8125 \
--hash=sha256:a9e5bdb83d1ed8d5d3cfcfbfd38c61d7d8cf2ce633750af606e5caf34d799840
requests==2.12.3 \
--hash=sha256:d92ed9912bab3f5e52d8e231be82c106650f648185e952f83c44ab4f2be55c0c \
--hash=sha256:de5d266953875e9647e37ef7bfe6ef1a46ff8ddfe61b5b3652edf7ea717ee2b2
sh==1.12.7 \
--hash=sha256:118f20a273ed44b3deb85215788689f0596d7c7d9f859df25b60f877ea85b631 \
--hash=sha256:5a07373657a1a704a34ea1bf73b2e55c42388c5d449634d6d7c96147f5660086
six==1.10.0 \
--hash=sha256:0ff78c403d9bccf5a425a6d31a12aa6b47f1c21ca4dc2573a7e2f32a97335eb1 \
--hash=sha256:105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a # via attrdict, fasteners, pathlib2, pip-tools
atomicwrites==1.1.5
attrdict==2.0.0 # via biome
biome==0.1.3
click==6.6 # via pip-tools
emoji==0.3.9
enum34==1.1.6
fasteners==0.14.1
first==2.0.1 # via pip-tools
monotonic==1.2 # via fasteners
ordered-set==2.0.1
pathlib2==2.1.0
pathlib==1.0.1 # via biome
pip-tools==1.8.0
requests==2.12.3
sh==1.12.7
six==1.10.0 # via attrdict, fasteners, pathlib2, pip-tools
58 changes: 17 additions & 41 deletions requirements/lck/qa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,24 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes --output-file /tmp/tmpf6_yytfc requirements/src/qa.in
# pip-compile --output-file /tmp/tmpQviQFz requirements/src/qa.in
#
flake8-blind-except==0.1.1 \
--hash=sha256:aca3356633825544cec51997260fe31a8f24a1a2795ce8e81696b9916745e599
flake8-commas==0.1.6 \
--hash=sha256:05d7a232746bffd3a2e1d9f6992d7fea6abe3e6b5b2864c40070621270e70be2 \
--hash=sha256:aed34b6c2f26d4f1cc19408672c84f47292384d1e2c6f4420b186dffeb880d46
flake8-comprehensions==1.2.1 \
--hash=sha256:45ca21e21148142657864a973431c85aeeb3112b81d96b86a1842ad018082127 \
--hash=sha256:8ab9e758ee664bf517dbfef76903b61533491ad9dbe40f93b8eb4e5190ec81e0
flake8-docstrings==1.0.2 \
--hash=sha256:3a8235b55cb28fe13f20023fccc8e51992a3b834927334e33ae1f1c426d76e21 \
--hash=sha256:65860ba7ccbe29b339eae985d6a4f794b074f66c7bd9f858d78838e263a54596
flake8-future-import==0.4.3 \
--hash=sha256:04dffb2f8203581ecf35454a1f07281d46169c67027bcc682bbc194a82946c23 \
--hash=sha256:a477335324172a0de9c4f91a00d2fcba2fe4063ef65fea2101025a878b3ff404
flake8-import-order==0.11 \
--hash=sha256:b56ca2793e27bd99c46f59a0a51f4847ddc1fed22697a505add882a9db2b8613 \
--hash=sha256:e4c9aa5fdd824bb763a12a2a17847b36cc2d4a427a00a86750c028bd4b28c171
flake8-print==2.0.2 \
--hash=sha256:19a0db71b37d985732c247032f84c111d191ed5977d7f852a654c6a8ac137595
flake8-quotes==0.8.1 \
--hash=sha256:668ec2fb0fbf1574a95f49e393364f8a114c7180e5cedc7377c5f4b5257e00fb \
--hash=sha256:edb03037945f45f74e7a4e148befdef8eaf579db7ab6069c0d77e06adddc093e
flake8==3.2.1 \
--hash=sha256:c7c460b5aff3a2063c798a77af18ec70af3941d35a22e2e76965e3c0e0b36055 \
--hash=sha256:dc9eed7667489b73b56b1714aa51f580601db364b61e1833908e931c6de47a65
mccabe==0.5.3 \
--hash=sha256:16293af41e7242031afd73896fef6458f4cad38201d21e28f344fff50ae1c25e \
--hash=sha256:f9b58bf366c1506dcd6117b33e5c4874746f0de859c9c7cab8b516cb6be1d22e # via flake8
pep8==1.7.0 \
--hash=sha256:4fc2e478addcf17016657dff30b2d8d611e8341fac19ccf2768802f6635d7b8a \
--hash=sha256:a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900 # via flake8-commas
pycodestyle==2.2.0 \
--hash=sha256:60c4e1c36f301ac539a550a29e9d16862069ec240472d86e5e71c4fc645829cb \
--hash=sha256:df81dc3293e0123e2e8d1f2aaf819600e4ae287d8b3af8b72181af50257e5d9a # via flake8, flake8-import-order
pydocstyle==1.1.1 \
--hash=sha256:20939fb9c2d61a9870449573d9ed762ec040c764b2241bec22c5ea956b9caf90 \
--hash=sha256:f808d8fc23952fe93c2d85598732bfa854cb5ee8a25f8191f60600710f898e8d # via flake8-docstrings
pyflakes==1.3.0 \
--hash=sha256:a4f93317c97a9d9ed71d6ecfe08b68e3de9fea3f4d94dcd1d9d83ccbf929bc31 \
--hash=sha256:ad89dafee8ca32282116209a0ca4dff050bdc343af958721d5517d242c1215d5 # via flake8
configparser==3.5.0 # via flake8
enum34==1.1.6 # via flake8
flake8-blind-except==0.1.1
flake8-commas==0.1.6
flake8-comprehensions==1.2.1
flake8-docstrings==1.0.2
flake8-future-import==0.4.3
flake8-import-order==0.11
flake8-print==2.0.2
flake8-quotes==0.8.1
flake8==3.2.1
mccabe==0.5.3 # via flake8
pep8==1.7.0 # via flake8-commas
pycodestyle==2.2.0 # via flake8, flake8-import-order
pydocstyle==1.1.1 # via flake8-docstrings
pyflakes==1.3.0 # via flake8

# The following packages are considered to be unsafe in a requirements file:
# setuptools # via flake8-blind-except
96 changes: 28 additions & 68 deletions requirements/lck/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,72 +4,32 @@
# This file is autogenerated by pip-compile
# To update, run:
#
# pip-compile --generate-hashes --output-file /tmp/tmp_0fgp0be requirements/src/test.in
# pip-compile --output-file /tmp/tmpHGap9A requirements/src/test.in
#
atomicwrites==1.1.5 \
--hash=sha256:240831ea22da9ab882b551b31d4225591e5e447a68c5e188db5b89ca1d487585 \
--hash=sha256:a24da68318b08ac9c9c45029f4a10371ab5b20e4226738e150e6e7c571630ae6
attrdict==2.0.0 \
--hash=sha256:86aeb6d3809e0344409f8148d7cac9eabce5f0b577c160b5e90d10df3f8d2ad3 # via biome
biome==0.1.3 \
--hash=sha256:eb700ab3469225d645f8a35ee7873def307572253dfe0b7bdd38b32c7737c48c
click==6.6 \
--hash=sha256:cc6a19da8ebff6e7074f731447ef7e112bd23adf3de5c597cf9989f2fd8defe9 \
--hash=sha256:fcf697e1fd4b567d817c69dab10a4035937fe6af175c05fd6806b69f74cbc6c4 # via pip-tools
cookies==2.2.1 \
--hash=sha256:15bee753002dff684987b8df8c235288eb8d45f8191ae056254812dfd42c81d3 \
--hash=sha256:d6b698788cae4cfa4e62ef8643a9ca332b79bd96cb314294b864ae8d7eb3ee8e # via responses
coverage==4.2 \
--hash=sha256:a5dda361f947dd67891f73a373ef63059cf3e551ac248dd3e91f76ea1b39cdda \
--hash=sha256:e312776d3ef04632ec742ce2d2b7048b635073e0245e4f44dfe8b08cc50ac656 # via pytest-cov
emoji==0.3.9 \
--hash=sha256:bccff5f7aff6de2986fe9e21575e7c5c46cbb587cf2597c54989034cad60e5a6
enum34==1.1.6 \
--hash=sha256:2d81cbbe0e73112bdfe6ef8576f2238f2ba27dd0d55752a776c41d38b7da2850 \
--hash=sha256:644837f692e5f550741432dd3f223bbb9852018674981b1664e5dc339387588a \
--hash=sha256:8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1
fasteners==0.14.1 \
--hash=sha256:427c76773fe036ddfa41e57d89086ea03111bbac57c55fc55f3006d027107e18 \
--hash=sha256:564a115ff9698767df401efca29620cbb1a1c2146b7095ebd304b79cc5807a7c
first==2.0.1 \
--hash=sha256:3bb3de3582cb27071cfb514f00ed784dc444b7f96dc21e140de65fe00585c95e \
--hash=sha256:41d5b64e70507d0c3ca742d68010a76060eea8a3d863e9b5130ab11a4a91aa0e # via pip-tools
future==0.16.0 \
--hash=sha256:e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb
monotonic==1.2 \
--hash=sha256:668088baea217e1e89edecd12c9a913ab4678419ad4eca378dcef1e4059a44f3 \
--hash=sha256:c0e1ceca563ca6bb30b0fb047ee1002503ae6ad3585fc9c6af37a8f77ec274ba # via fasteners
ordered-set==2.0.1 \
--hash=sha256:55567f094481ba204ffede0117ab563e19af050c7cbf33a9a23292b8cb2b0a0e
pathlib2==2.1.0 \
--hash=sha256:24e0b33e1333b55e73c9d1e9a8342417d519f7789a9d3b440f4acd00ea45157e \
--hash=sha256:deb3a960c1d55868dfbcac98432358b92ba89d95029cddd4040db1f27405055c
pathlib==1.0.1 \
--hash=sha256:6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f # via biome
pip-tools==1.8.0 \
--hash=sha256:0b638dbb88ba7486dbdae2b94d9170f9e641799c8019ed1c1f07ec97ad6b8125 \
--hash=sha256:a9e5bdb83d1ed8d5d3cfcfbfd38c61d7d8cf2ce633750af606e5caf34d799840
py==1.4.32 \
--hash=sha256:2d4bba2e25fff58140e6bdce1e485e89bb59776adbe01d490baa6b1f37a3dd6b \
--hash=sha256:c4b89fd1ff1162375115608d01f77c38cca1d0f28f37fd718005e19b28be41a7 # via pytest
pytest-cov==2.4.0 \
--hash=sha256:10e37e876f49ddec80d6c83a54b657157f1387ebc0f7755285f8c156130014a1 \
--hash=sha256:53d4179086e1eec1c688705977387432c01031b0a7bd91b8ff6c912c08c3820d
pytest-mock==1.5.0 \
--hash=sha256:782f23f227874bac4cee878637c2af8efdd2c34c48fcbf9e79b00a0872056ffb \
--hash=sha256:8e0fd43280c717f36920b60356bd713291b81a61704c94bc13aae9a12ef7fbd8
pytest==3.0.5 \
--hash=sha256:4a003aa956f023ce91aa6e166b555e6f02a4b0aeb459ac61e14f64c0d39037fd \
--hash=sha256:c97bdefdca852d48c3144b8a534a78527534793bac959c10211ed3e037925020 # via pytest-cov, pytest-mock
requests==2.12.3 \
--hash=sha256:d92ed9912bab3f5e52d8e231be82c106650f648185e952f83c44ab4f2be55c0c \
--hash=sha256:de5d266953875e9647e37ef7bfe6ef1a46ff8ddfe61b5b3652edf7ea717ee2b2
responses==0.5.1 \
--hash=sha256:3a907f7aae2fd2286d06cfdf238957786c38bbcadc451adceecc769a4ef882b7 \
--hash=sha256:8cad64c45959a651ceaf0023484bd26180c927fea64a81e63d334ddf6377ecea
sh==1.12.7 \
--hash=sha256:118f20a273ed44b3deb85215788689f0596d7c7d9f859df25b60f877ea85b631 \
--hash=sha256:5a07373657a1a704a34ea1bf73b2e55c42388c5d449634d6d7c96147f5660086
six==1.10.0 \
--hash=sha256:0ff78c403d9bccf5a425a6d31a12aa6b47f1c21ca4dc2573a7e2f32a97335eb1 \
--hash=sha256:105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a # via attrdict, fasteners, pathlib2, pip-tools, responses
atomicwrites==1.1.5
attrdict==2.0.0 # via biome
biome==0.1.3
click==6.6 # via pip-tools
cookies==2.2.1 # via responses
coverage==4.2 # via pytest-cov
emoji==0.3.9
enum34==1.1.6
fasteners==0.14.1
first==2.0.1 # via pip-tools
funcsigs==1.0.2 # via mock
future==0.16.0
mock==2.0.0 # via pytest-mock, responses
monotonic==1.2 # via fasteners
ordered-set==2.0.1
pathlib2==2.1.0
pathlib==1.0.1 # via biome
pbr==1.10.0 # via mock
pip-tools==1.8.0
py==1.4.32 # via pytest
pytest-cov==2.4.0
pytest-mock==1.5.0
pytest==3.0.5 # via pytest-cov, pytest-mock
requests==2.12.3
responses==0.5.1
sh==1.12.7
six==1.10.0 # via attrdict, fasteners, mock, pathlib2, pip-tools, responses
2 changes: 1 addition & 1 deletion src/reqwire/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def main_build(ctx, # type: click.Context
src = src_dir / ''.join((tag_name, options['extension']))
dest = dest_dir / '{}.txt'.format(tag_name)
console.info('building {}', click.format_filename(str(dest)))
args = default_args.copy()
args = default_args[:]
args += [str(src)]
args += list(pip_compile_options)
with atomicwrites.AtomicWriter(str(dest), 'w', True).open() as f:
Expand Down
5 changes: 3 additions & 2 deletions tests/unit/test_scaffold.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pip.models
import pip.req
import responses
import six

import reqwire.scaffold

Expand All @@ -25,13 +26,13 @@ def test_build_source_header_format(fake_time, patch_datetime_now):
extra_index_urls=[pip.models.PyPI.simple_url],
nested_cfiles={'constraints.txt'},
nested_rfiles={'requirements.txt'})
assert header == """\
assert header == reqwire.scaffold.MODELINES_HEADER + six.text_type("""\
# Generated by reqwire on {}
-c constraints.txt
-r requirements.txt
--index-url https://pypi.python.org/simple
--extra-index-url https://pypi.python.org/simple
""".format(fake_time.strftime('%c'))
""".format(fake_time.strftime('%c')))


@responses.activate
Expand Down

0 comments on commit 792e5a8

Please sign in to comment.