Esempio n. 1
0
def pull(slug=None):
    """Get the latest files associated with the current gist"""
    # If a slug is provided, just use that
    if slug:
        clone(slug, fresh=False)
        return

    # Check if .jovianrc exists
    if not rcfile_exists():
        log(RCFILE_NOTFOUND, error=True)
        return

    # Get list of notebooks
    nbs = get_rcdata()['notebooks']
    for fname in nbs:
        # Get the latest files for each notebook
        clone(nbs[fname]['slug'], fresh=False)
Esempio n. 2
0
def test_rcfile_does_not_exist():
    with temp_directory():
        assert not rcfile_exists()
Esempio n. 3
0
 def test_rcfile_does_not_exist(self):
     self.assertFalse(rcfile_exists())