<commit_before>from C4CApplication.simulator.super_class import MySeleniumTests
import time


class SeleniumTestJob(MySeleniumTests):

    def test_register_job_done(self):
        self.populate_db()
        
        # log in
        self.selenium.get('%s%s' % (self.live_server_url, ''))
        time.sleep(1)
        username_input = self.selenium.find_element_by_name("email")
        username_input.send_keys('<EMAIL>')
        time.sleep(1)
        password_input = self.selenium.find_element_by_name("password")
        password_input.send_keys('<PASSWORD>')
        time.sleep(1)
        self.selenium.find_element_by_xpath('//input[@value="Login"]').click()
        time.sleep(1)
        
        # Test confirm job
        self.selenium.get('%s%s' % (self.live_server_url, '/confirmjobdone/1'))
        time.sleep(1)
        job_time_input = self.selenium.find_element_by_name("time_to_pay")
        job_time_input.send_keys('40')
        time.sleep(1)
        self.selenium.find_element_by_xpath('//input[@value="Confirm"]').click()
        self.assertEqual(0, 0)
        return True<commit_msg>test create job offer<commit_after>from C4CApplication.simulator.super_class import MySeleniumTests
import time


class SeleniumTestJob(MySeleniumTests):

    # test pour creer une demande de job (I need help)
    def test_offer_job(self):
        self.populate_db()
        
        # log in
        self.selenium.get('%s%s' % (self.live_server_url, ''))
        time.sleep(1)
        username_input = self.selenium.find_element_by_name("email")
        username_input.send_keys('<EMAIL>')
        time.sleep(1)
        password_input = self.selenium.find_element_by_name("password")
        password_input.send_keys('<PASSWORD>op')
        time.sleep(1)
        self.selenium.find_element_by_xpath('//input[@value="Login"]').click()
        time.sleep(1)
        
        print("Logged for create job")
        
        # Test create job
        self.selenium.get('%s%s' % (self.live_server_url, '/newjob/demand'))
        time.sleep(1)
        title_input = self.selenium.find_element_by_name("title")
        title_input.send_keys('New demand test')
        time.sleep(1)
        desc_input = self.selenium.find_element_by_name("desc")
        desc_input.send_keys('Description of a demand test')
        time.sleep(1)
        # TODO aller voir select sur internet
        #categories_input = Select(self.selenium.find_element_by_name("categories"))
        #categories_input.select_by_visible_text("Visit") 
        #time.sleep(1)
        # TODO idem pour 'frequency', 'subfrequency', 'weekdays', 'dayparts', 
        #'specific' and 'visibility'
        self.selenium.find_element_by_xpath('//input[@value="Post request"]').click()
        self.assertEqual(0, 0)
        return True

    def test_register_job_done(self):
        self.populate_db()
        
        # log in
        self.selenium.get('%s%s' % (self.live_server_url, ''))
        time.sleep(1)
        username_input = self.selenium.find_element_by_name("email")
        username_input.send_keys('<EMAIL>')
        time.sleep(1)
        password_input = self.selenium.find_element_by_name("password")
        password_input.send_keys('<PASSWORD>')
        time.sleep(1)
        self.selenium.find_element_by_xpath('//input[@value="Login"]').click()
        time.sleep(1)
        
        # Test confirm job
        self.selenium.get('%s%s' % (self.live_server_url, '/confirmjobdone/1'))
        time.sleep(1)
        job_time_input = self.selenium.find_element_by_name("time_to_pay")
        job_time_input.send_keys('40')
        time.sleep(1)
        self.selenium.find_element_by_xpath('//input[@value="Confirm"]').click()
        self.assertEqual(0, 0)
        return True
{'fraction_non_alphanumeric': 0.12922994937383428, 'fraction_numerical': 0.009059419131361577, 'mean_word_length': 2.8189216683621567, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '405483', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1204, 'n_words': 165}