예제 #1
0
파일: generator.py 프로젝트: karma86/wigiki
    def _parse_gists(self):
        gists = {}
        pages = []

        for username, gist_dict in self.gists.items():
            for title, gist_id in gist_dict.items():
                user_gid = "/".join((username, gist_id))
                gists[title] = Builder.gist(user_gid)
                pages.append(title)

        return gists, sorted(pages)
예제 #2
0
파일: generator.py 프로젝트: tlatsas/wigiki
    def _parse_gists(self):
        gists = {}
        pages = []

        for username, gist_dict in self.gists.items():
            for title, gist_id in gist_dict.items():
                user_gid = "/".join((username, gist_id))
                gists[title] = Builder.gist(user_gid)
                pages.append(title)

        return gists, sorted(pages)
예제 #3
0
def test_gist():
    assert_equals(Builder.gist(100),
                  '<script src="https://gist.github.com/100.js"></script>')