Yuvi Panda
9eb78c34ab
Merge pull request #534 from betatim/test-test-test
...
[MRG] Add tests for port mapping conversion
2018-12-22 10:46:16 -08:00
Yuvi Panda
18e9d2f817
Merge pull request #511 from betatim/cached-builds-take2
...
[MRG] Add caching of already built repositories
2018-12-21 22:19:28 -08:00
Tim Head
27a05d455e
Use a minimal hand-crafted Dockerfile for speed
...
Instead of installing the normal stack just install the notebook server
and launch it to check for the launch URL being output correctly.
2018-12-21 19:55:49 +01:00
Tim Head
9e6dc8f7d7
Update tests and add invalid port spec tests
2018-12-21 17:59:42 +01:00
Tim Head
7067663763
Add tests for port mapping conversion
2018-12-21 15:58:56 +01:00
Tim Head
e7018d7ca5
Add caching of already built repositories
...
Add tests for image caching
Adjust tests and main app for cached builds
Remove obsolete command-line handling
Remove print statement from test
Fix subdirectory handling
Put back exception instead of sys.exit()
2018-12-21 11:20:51 +01:00
yuvipanda
29407aa83f
Put ${REPO_PATH}/.local/bin in PATH too
2018-12-18 11:50:35 -08:00
yuvipanda
21154d3b86
Use REPO_DIR rather than REPO_PATH
...
https://github.com/jupyter/repo2docker/pull/507#issuecomment-448184651
is a good justification
2018-12-18 11:50:35 -08:00
yuvipanda
66f025720e
Add simple python test for --repo-path
...
extra-args.yaml placed in a test directory can be used
to pass extra arguments to the repo2docker command.
2018-12-18 11:50:24 -08:00
James Bourbeau
4f72fd8c94
Remove f-string in test
2018-12-18 09:29:28 -06:00
Min RK
aca4259534
update port tests
...
use repo2docker directly, not as a subprocess
2018-12-17 14:23:02 +01:00
Min RK
22de9f40d0
get unittests passing again
...
fix some relative paths, temporary dirs, etc.
2018-12-17 13:11:45 +01:00
Min RK
a5d5e77ad1
move unittests into tests/unit directory
...
for easier test discovery so we don't skip tests without realizing
2018-12-17 13:06:28 +01:00
yuvipanda
3a85fb814b
Use pytest's capsys to test for stdout values
...
Works better with pytest's output capturing system
2018-12-14 13:30:22 -08:00
yuvipanda
0a1d9e3d5f
Add test for valid & invalid docker image names
2018-12-14 13:15:33 -08:00
yuvipanda
183d504515
Add test for cleanup_checkout
2018-12-14 13:15:33 -08:00
yuvipanda
a44aed7664
Add some argument parsing tests
...
And fix the one bug discovered in this process
2018-12-14 13:15:33 -08:00
yuvipanda
769efb8a69
Add test for proper failure when ref isn't found in git repo
2018-12-14 13:15:33 -08:00
yuvipanda
e1ead75302
Move argument parsing out of Repo2Docker class
...
Argument parsing should only be used when calling from
the command line, and not be deeply tied into the class
itself. This makes it easier for folks to just set
traitlets on an empty class and start it, without having to
deal with passing arguments.
This breaks how people might already be using Repo2Docker as
a library, so should not be part of 0.7
2018-12-14 13:15:33 -08:00
James Bourbeau
db00d4982c
Use "local" label for local directory
2018-12-13 17:12:09 -06:00
James Bourbeau
2448730b75
Refactor test to use mock
2018-12-13 16:40:39 -06:00
James Bourbeau
a55a3f6d30
Add test for BuildPack label rendering
2018-12-13 13:34:57 -06:00
James Bourbeau
99b1e7548a
Update test_labels.py
2018-12-13 12:43:45 -06:00
James Bourbeau
5ff24d960b
Add test_labels
2018-12-12 22:05:35 -06:00
Tim Head
69cd760e07
Merge pull request #494 from yuvipanda/util-tests
...
Add unit tests for repo2docker/utils.py
2018-12-11 13:05:08 +01:00
yuvipanda
bf8836243c
Add test for ByteSpecification validation
2018-12-10 23:19:13 -08:00
yuvipanda
b441176a6a
Add test for utils.chdir
2018-12-10 23:13:56 -08:00
yuvipanda
30e69bccee
Add unit test for execute_cmd in repo2docker.utils
2018-12-10 23:06:25 -08:00
yuvipanda
d035483d1c
Add tests for Docker & Legacy Docker buildpacks
2018-12-10 22:46:06 -08:00
yuvipanda
47335f44c7
Add tests for cache_from functionality
2018-12-10 11:25:47 -08:00
Yuvi Panda
c489f54a05
Merge pull request #448 from betatim/nix-experiment
...
[MRG] Switch to BaseImage for nix build pack
2018-11-12 13:56:30 -08:00
Tim Head
58cbe1797d
Merge pull request #457 from nuest/stencila
...
Updates for Stencila
2018-11-09 13:56:23 +01:00
Tim Head
a8aee884e9
Add executable flag to verify script
2018-11-09 11:14:30 +01:00
Tim Head
28a11ab3de
Fix comment typos
2018-11-09 08:20:24 +01:00
Tim Head
fcab15b092
Add a test for nix using a binder subidrectory
2018-11-09 08:12:56 +01:00
Tim Head
d427fdfd52
Add test and support for binder sub-directory
2018-11-09 08:12:53 +01:00
Tim Head
046b744785
Inherit from BaseImage instead of BuildPack
2018-11-09 08:12:33 +01:00
nuest
490962e08d
split up Stencila tests to not run into timeouts on Travis CI
2018-11-06 21:27:18 +01:00
nuest
c2b17d599e
add tests pyjp vs. py for Stencila, make Stencila tests more specific
2018-11-05 21:10:13 +01:00
nuest
7e8450fcee
more detailed check for Stencila + Python test
2018-10-30 10:33:21 +01:00
nuest
24def164ed
verify R installation for r-markdown with Stencila
2018-10-29 20:52:05 +01:00
Chris Ostrouchov
1e3630cc10
Feature: Adding nix support for repo2docker
...
test url: https://gitlab.com/costrouc/nix-binder-example
2018-10-17 16:32:40 -04:00
Tim Head
b1dcbbe996
Adjust sub-directory tests after changing CWD behaviour
2018-10-16 13:46:00 +02:00
Tim Head
df7251dff6
Add context manager to change working dir
...
The context manager takes care of restoring the current working
directory when we are done. This is useful when the directory we set as
working directory stops existing.
2018-10-16 13:29:59 +02:00
Tim Head
4e1eff5f1b
Switch repository used to test sub-directory support
...
Using a repository that contains invlid instructions in the root of the
repository so that the test for subdirectory support will fail if
repo2docker doesn't actually switch into the requested sub-directory.
2018-10-16 13:28:08 +02:00
Tim Head
71903721d9
Add tests for local content provider
2018-10-16 08:04:13 +02:00
Tim Head
02b41948dd
Add tests for Git content provider
2018-10-16 08:04:13 +02:00
yuvipanda
18f11b8c1f
[WIP] base contentproviders commit
...
Very much a WIP, but some thougts on how we can support more
than just git.
2018-10-16 08:04:13 +02:00
Derek Ludwig
4f1dc9ce27
add comment
2018-10-15 10:59:16 -07:00
Derek Ludwig
405abf4a98
update tests
2018-10-15 10:58:00 -07:00