def test_server_hard_code(self): hrefs = servers.hard_code("JavaScript", "triathlontraining") self.assertTrue("https://github.com/BenJenkins/triathlontraining" in hrefs)
import sys import write import hitter import api_call import servers # language = "Java" # query = "gradle" language = "python" query = "foobar" try: filename = sys.argv[1] except IndexError: filename = "best_matches.txt" # java_gradle_hrefs = api_call.hit_github(language, query) # java_gradle_hrefs = hitter.hit_github(language, query) java_gradle_hrefs = servers.hard_code(language, query) ### gets beyond the API limit write.add_repos_to_text_file(java_gradle_hrefs, filename)