forked from khatrivarun/tinder_for_jobs_py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdbtest.py
79 lines (73 loc) · 2.36 KB
/
dbtest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
from Controllers.ApplicantController import ApplicantController
from Controllers.StateController import *
from Controllers.ApplicationController import ApplicationController
from Controllers.CompanyController import CompanyController
from Controllers.JobController import JobController
from Repositories.JoinRepository import JoinRepository
from Repositories.DomainRepository import DomainRepository
from Repositories.JobRepository import JobRepository
from Utilities.HashPassword import HashPassword
from Utilities.CreateDatabase import CreateDatabase
# from Views.LoginRegisterPage import *
import os.path
# applicant_details = {
# 'email_id': '[email protected]',
# 'name': 'varun',
# 'dob': '12-12-2013',
# 'gender': 'M',
# 'age': '23',
# 'tel_no': '123',
# 'experience': '6',
# 'password': 'varun123'
# }
#
# applicant = ApplicantController()
# applicant.register(applicant_details)
# print(applicant.login('[email protected]', 'varun123'))
# domain = DomainRepository()
#
# domain.create('[email protected]', 'ml')
# domain.create('[email protected]', 'ai')
# domain.create('[email protected]', 'iot')
# jons = JoinRepository()
# print(jons.get_applicant_with_domain('[email protected]'))
#
# company_details = {
# 'email_id': '[email protected]',
# 'password': 'varun123',
# 'name': 'varun company',
# 'location': 'nj',
# 'website': 'vc.com',
# 'description': 'varun'
# }
#
# company = CompanyController()
# company.register(company_details)
# print(company.login('[email protected]', 'varun123'))
# jons = JoinRepository()
# print(jons.get_jobs_with_companies())
# hash = HashPassword()
# print(hash.verify_password(hash.hash_password('varun'), 'varuN'))
#
applicant_details = {
'email_id': '[email protected]',
'name': 'daksh',
'dob': '12-12-2013',
'gender': 'M',
'age': '23',
'tel_no': '123',
'experience': '5',
'password': 'daksh123'
}
#
applicant = ApplicantController()
# application = ApplicationController()
print(applicant.register(applicant_details))
# print(applicant.login(applicant_details['email_id'], applicant_details['password']))
# print(get_account())
# application.like(1, '[email protected]', '[email protected]')
# job = JobController()
# print(job.add_job('njs', 'nm', '[email protected]'))
# logRegister = LoginRegister()
# join = JoinRepository()
# print(join.get_applied_jobs('[email protected]'))